Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InternBytes ¶
func ShallowString ¶
ShallowString force casts a []byte to a string. USE AT YOUR OWN RISK
Types ¶
type InternStringPool ¶
type InternStringPool struct {
// contains filtered or unexported fields
}
InternStringPool is a simple thread-safe intern string pool.
func NewInternStringPool ¶
func NewInternStringPool() *InternStringPool
NewInternStringPool returns a new instance of InternStringPool
func (*InternStringPool) Intern ¶
func (p *InternStringPool) Intern(s string) string
func (*InternStringPool) InternBytes ¶
func (p *InternStringPool) InternBytes(b []byte) string
Click to show internal directories.
Click to hide internal directories.