Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringPool ¶
"Strings" are really headers with a backing store, so by storing and reusing strings, we may be able to reuse the underlying backing store.
func NewPool ¶
func NewPool() *StringPool
func (*StringPool) Intern ¶
func (sp *StringPool) Intern(s string) string
Try to find and return a string in the pool map, and add it if it isn't already there. Not concurrency safe
Click to show internal directories.
Click to hide internal directories.