package stringset
Import Path
golang.org/x/text/internal/stringset (on go.dev)
Dependency Relation
imports one package, and imported by one package
Involved Source Files
Package stringset provides a way to represent a collection of strings
compactly.
Package-Level Type Names (total 2)
A Builder constructs Sets.
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.
Index returns the index for the given string, which must have been added
before.
Set creates the set created so far.
func NewBuilder() *Builder
Package-Level Functions (total 2)
NewBuilder returns a new and initialized Builder.
Search returns the index of the given string or -1 if it is not in the set.
The Set must have been created with strings in sorted order.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |