Documentation ¶
Index ¶
- Variables
- func BytesToTime(b []byte) (time.Time, error)
- func BytesToUint64(b []byte) uint64
- func CopyBytes(b []byte) []byte
- func IsAllZeros(b []byte) bool
- func Sort(candidates map[string]*big.Int, seed uint64) []string
- func TimeToBytes(t time.Time) ([]byte, error)
- func ToBigInt(v interface{}) (*big.Int, error)
- func ToEtherAddress(v interface{}) (common.Address, error)
- func Uint64ToBytes(u uint64) []byte
- func Uint64ToInt64(u uint64) int64
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWrongType = errors.New("wrong data type held by interface{}")
Functions ¶
func BytesToTime ¶ added in v0.2.0
BytesToTime converts []byte to time
func IsAllZeros ¶ added in v0.1.9
IsAllZeros return true if all bytes are zero
func TimeToBytes ¶ added in v0.2.0
TimeToBytes converts time to []byte
func ToEtherAddress ¶ added in v0.3.5
func Uint64ToInt64 ¶ added in v0.2.0
Uint64ToInt64 converts uint64 to int64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.