(strs ...string)
| 22 | } |
| 23 | |
| 24 | func NewSetString(strs ...string) *SetString { |
| 25 | ss := &SetString{ |
| 26 | m: make(map[string]struct{}), |
| 27 | } |
| 28 | |
| 29 | for _, str := range strs { |
| 30 | ss.Add(str) |
| 31 | } |
| 32 | |
| 33 | return ss |
| 34 | } |
| 35 | func (ss *SetString) Add(str string) { |
| 36 | ss.m[str] = struct{}{} |
| 37 | } |
no test coverage detected