tools

package module
v0.0.0-...-0bb783d Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToByte

func BoolToByte(b bool) byte

BoolToByte - converts bool to byte

func BytesToFloat64

func BytesToFloat64(bytes []byte) float64

BytesToFloat64 - converts bytes to float64

func BytesToInt

func BytesToInt(arr []byte) int

BytesToInt - converts byte array to int

func BytesToInt32

func BytesToInt32(arr []byte) int32

BytesToInt32 - converts byte array to int

func BytesToInt64

func BytesToInt64(arr []byte) int64

BytesToInt64 - converts byte array to int

func Check

func Check(err error, info ...string) bool

Check checks for the error, logs it and sends back the bool value.

func NumToBytes

func NumToBytes(num interface{}) []byte

NumToBytes - converts integer to bytes, supports int32 and int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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