Documentation ¶
Index ¶
- func CopyDir(src, dst string) error
- func CopyFile(src, dst string) error
- func Float64ToStr(val float64) string
- func GetKey(n int) []byte
- func GetValue(n int) []byte
- func GetValue16B() []byte
- func GetValue4K() []byte
- func MemHash(buf []byte) uint64
- func PathExist(path string) bool
- func StrToFloat64(val string) (float64, error)
- func StrToInt64(val string) (int64, error)
- func StrToUint(val string) (uint64, error)
- type Murmur128
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float64ToStr ¶
Float64ToStr converts type float64 to string.
func MemHash ¶
MemHash is the hash function used by go map, it utilizes available hardware instructions(behaves as aeshash if aes instruction is available). NOTE: The hash seed changes for every process. So, this cannot be used as a persistent hash.
func StrToFloat64 ¶
StrToFloat64 converts type string to float64.
func StrToInt64 ¶
StrToInt64 converts type string to int64.
Types ¶
type Murmur128 ¶
type Murmur128 struct {
// contains filtered or unexported fields
}
func NewMurmur128 ¶
func NewMurmur128() *Murmur128
func (*Murmur128) EncodeSum128 ¶
Click to show internal directories.
Click to hide internal directories.