OrderedSet is a unique set of strings that maintains insertion order.
| 2 | |
| 3 | // OrderedSet is a unique set of strings that maintains insertion order. |
| 4 | type OrderedSet struct { |
| 5 | // s is the set of strings that we're keeping track of. |
| 6 | s []string |
| 7 | // m is a mapping of string value "s" into the index "i" that that |
| 8 | // string is present in in the given "s". |
| 9 | m map[string]int |
| 10 | } |
| 11 | |
| 12 | // NewOrderedSet creates an ordered set with no values. |
| 13 | func NewOrderedSet() *OrderedSet { |
nothing calls this directly
no outgoing calls
no test coverage detected