Versions in this module Expand all Collapse all v0 v0.8.8 Aug 8, 2017 Changes in this version + var ErrNonString = errors.New("cannot unmarshal non-string as hex data") + var ErrOddLength = errors.New("hex string has odd length") + var ErrSyntax = errors.New("invalid hex") + func AppDataDir() string + func AssertEquals(t testing.TB, actual interface{}, expected interface{}) + func AssertNotEquals(t testing.TB, actual interface{}, expected interface{}) + func AssertSame(t testing.TB, actual interface{}, expected interface{}) + func ByteToFloat64(bytes []byte) float64 + func BytesToHex(byteSlice []byte) string + func BytesToUint32(src []byte) uint32 + func BytesToUint32Arrary(src []byte) []uint32 + func Contain(obj interface{}, target interface{}) bool + func CurrentTimestamp() uint32 + func DecodeUint32(bytes []byte, cnt uint32) ([]uint32, error) + func DelStringFromSlice(val string, slice *[]string) + func Deserialize(data []byte, obj interface{}) error + func FileExist(filePath string) bool + func Float64ToByte(float float64) []byte + func HexToBytes(s string) []byte + func IsDirEmpty(path string) (bool, error) + func IsDirExist(path string) (bool, error) + func IsDirMissingOrEmpty(path string) (bool, error) + func MinimizeSilce(src []byte) []byte + func OpenDir(dir string) (string, error) + func OpenFile(path string) (*os.File, error) + func ReadVarInt(r io.Reader) (uint64, error) + func Serialize(obj interface{}) []byte + func Uint32ArrayToBytes(arrary []uint32) []byte + func Uint32ToBytes(src uint32) []byte + func UnmarshalFixedText(input, out []byte) error + func VarDecode(r io.Reader, val interface{}) error + func VarEncode(w io.Writer, val interface{}) + func VarInt(n uint64) []byte + func WriteVarInt(w io.Writer, count uint64) + func ZeroMemory(s interface{}) + type Bytes []byte + func (b *Bytes) UnmarshalJSON(input []byte) error + func (b *Bytes) UnmarshalText(input []byte) error + func (b Bytes) MarshalText() ([]byte, error) + type Times []uint32 + func (t Times) Len() int + func (t Times) Less(i, j int) bool + func (t Times) Swap(i, j int)