NewStringSet creates a StringSet from a list of values.
(items ...string)
| 32 | |
| 33 | // NewStringSet creates a StringSet from a list of values. |
| 34 | func NewStringSet(items ...string) StringSet { |
| 35 | ss := StringSet{} |
| 36 | ss.Insert(items...) |
| 37 | return ss |
| 38 | } |
| 39 | |
| 40 | // StringKeySet creates a StringSet from a keys of a map[string](? extends interface{}). |
| 41 | // If the value passed in is not actually a map, this will panic. |