// SplitStringToSet make a string set by split a string into parts
SplitStringToSet make a string set by split a string into parts
// SplitStringToSet make a string set by split a string into parts
func SplitStringToSet(s string, sep string) *StringSet {
	if s == "" {
		return &StringSet{Data: map[string]struct{}{}}
	}
	data := map[string]struct{}{}
	keys := strings.Split(s, sep)
	for _, key := range keys {
		data[key] = struct{}{}
	}
	return &StringSet{Data: data}
}
func SplitStringToSet ( s string , sep string ) * StringSet { if s == " " { return & StringSet { Data : map [ string ] struct { } { } } } data := map [ string ] struct { } { } keys := strings . Split ( s , sep ) for _ , key := range keys { data [ key ] = struct { } { } } return & StringSet { Data : data } }
SplitStringToSet make a string set by split a string into parts
SplitStringToSet make a string set by split a string into parts