Documentation
¶
Index ¶
Constants ¶
View Source
const ( // LoadFactorNum is the numerator of load factor LoadFactorNum = 13 // LoadFactorDen is the denominator of load factor LoadFactorDen = 2 )
LoadFactor is the maximum average load of a bucket that triggers growth is 6.5 in Golang Map. Represent as LoadFactorNum/LoadFactorDen, to allow integer math. They are from the golang definition. ref: https://github.com/golang/go/blob/go1.13.15/src/runtime/map.go#L68-L71
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MutableString ¶
type MutableString string
MutableString can be used as string via string(MutableString) without performance loss.
func String ¶
func String(b []byte) (s MutableString)
String converts slice to MutableString without copy. The MutableString can be converts to string without copy. Use it at your own risk.
Click to show internal directories.
Click to hide internal directories.