util

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2019 License: GPL-3.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const MaxInt = int64(MaxUint >> 1)
View Source
const MaxUint = ^uint(0)

Variables

This section is empty.

Functions

func BytesToTime added in v0.2.0

func BytesToTime(b []byte) (time.Time, error)

func BytesToUint64

func BytesToUint64(b []byte) uint64

func CopyBytes

func CopyBytes(b []byte) []byte

func IsAllZeros added in v0.1.9

func IsAllZeros(b []byte) bool

IsAllZeros return true if all bytes are zero

func TimeToBytes added in v0.2.0

func TimeToBytes(t time.Time) ([]byte, error)

func Uint64ToBytes

func Uint64ToBytes(u uint64) []byte

func Uint64ToInt64 added in v0.2.0

func Uint64ToInt64(u uint64) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL