natsio/subject/segment.go

16 lines
284 B
Go
Raw Normal View History

2022-11-21 22:43:02 +00:00
package subject
import "fmt"
2022-11-21 22:44:36 +00:00
// getSegmentValue ...
2022-11-21 22:43:02 +00:00
func getSegmentValue(val string) string {
return fmt.Sprintf("%s.%s", prefixes.Segment, val)
}
// Segment ...
var Segment = struct {
GetListSegmentInfo string
}{
GetListSegmentInfo: getSegmentValue("get_list_segment_info"),
}