Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MapStringSet ¶
MapStringSet is a Map of StringSets.
func (MapStringSet) Add ¶
func (mss MapStringSet) Add(n, v string)
Add adds a new value to the Map. If n is already in the map, then v is appended to the StringSet under that key. Otherwise a new StringSet is creayed containing v
type StringSet ¶
type StringSet map[string]struct{}
StringSet is a basic set implementation for strings. This is used a lot so it deserves its own type. Other types of sets are used throughout the code but do not have their own typedef. String sets and <type>sets should be used throughout the code when applicable, they are a lot more flexible than slices and provide easy lookup.
Click to show internal directories.
Click to hide internal directories.