utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToBase64

func BytesToBase64(bytes []byte) string

BytesToBase64 encodes a byte array as a base64 string.

func BytesToHex

func BytesToHex(bytes []byte) string

BytesToHex encodes a byte array as an upper case hex string.

func Int64ToBytes

func Int64ToBytes(n int64) []byte

Int64ToBytes converts a unint64 into a byte array.

func UInt64ToBytes

func UInt64ToBytes(n uint64) []byte

UInt64ToBytes converts a unint64 into a byte array.

Types

This section is empty.

Jump to

Keyboard shortcuts

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