Documentation ¶
Overview ¶
Package stringset provides a way to represent a collection of strings compactly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
A Builder constructs Sets.
func (*Builder) Add ¶
Add adds a string to the index. Strings that are added by a single Add will be stored together, unless they match an existing string.
func (*Builder) Index ¶
Index returns the index for the given string, which must have been added before.
Click to show internal directories.
Click to hide internal directories.