godropbox: github.com/dropbox/godropbox/strings Index | Files

package strings

import "github.com/dropbox/godropbox/strings"

Index

Package Files

intern.go

func Intern Uses

func Intern(s string) string

func InternBytes Uses

func InternBytes(b []byte) string

func ShallowString Uses

func ShallowString(b []byte) (s string)

ShallowString force casts a []byte to a string. USE AT YOUR OWN RISK

type InternStringPool Uses

type InternStringPool struct {
    // contains filtered or unexported fields
}

InternStringPool is a simple thread-safe intern string pool.

func NewInternStringPool Uses

func NewInternStringPool() *InternStringPool

NewInternStringPool returns a new instance of InternStringPool

func (*InternStringPool) Intern Uses

func (p *InternStringPool) Intern(s string) string

func (*InternStringPool) InternBytes Uses

func (p *InternStringPool) InternBytes(b []byte) string

Package strings imports 3 packages (graph). Updated 2018-03-07. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).