Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Intern ¶
type Intern struct {
// contains filtered or unexported fields
}
Intern is a mapping from strings to ints. It isn't thread safe. Appropriate handling of race conditions is the responsibility of users.
func (*Intern) Get ¶
Get returns an ID for a string. If the string was not registered, this method registers the string and returns an ID. This method is idempotent.
Click to show internal directories.
Click to hide internal directories.