Documentation
¶
Overview ¶
Package intern maps byte slices into unique symbol identifiers and private copies of those byte slices having the same value.
Byte slices returned by Intern() should not be modified by the caller!
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Symbol ¶
type Symbol int
func Intern ¶
Given a byte slice, return a (symbol, []byte) pair providing the unique symbol number assigned and a copy of the byte slice payload that has been privately recorded by the intern subsystem.
func InternString ¶
func (Symbol) Bytes ¶
Return the byte slice representation of symbol s.
Note that this can have unexpected results if the byte string associated with s is not a valid Unicode string.
Click to show internal directories.
Click to hide internal directories.