util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteArrayToNumber

func ByteArrayToNumber(bt []byte, order binary.ByteOrder) (int64, error)

func ByteArrayToNumberAsDefault

func ByteArrayToNumberAsDefault(bt []byte) (int64, error)

func ByteArrayToString

func ByteArrayToString(b []byte) string

[]byte -> string

func GetBytes

func GetBytes(key interface{}) ([]byte, error)

func NumberToByteArray

func NumberToByteArray(num int, order binary.ByteOrder) ([]byte, error)

func NumberToByteArrayAsDefault

func NumberToByteArrayAsDefault(num int) ([]byte, error)

func StringToByteArray

func StringToByteArray(s string) []byte

string -> []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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