utils

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToUint16

func BytesToUint16(bytes []byte) uint16

func BytesToUint32

func BytesToUint32(bytes []byte) uint32

func BytesToUint64

func BytesToUint64(bytes []byte) uint64

func CidToToken

func CidToToken(cid string) uint64

func HashBlake2b256

func HashBlake2b256(data []byte) []byte

func IsSuccessHttpStatus

func IsSuccessHttpStatus(code int) bool

func RandomInt64

func RandomInt64(max int64) (int64, error)

func RemoveSorted

func RemoveSorted[T any](slice []T, i int) []T

func Uint16ToBytes

func Uint16ToBytes(number uint16) []byte

func Uint32ToBytes

func Uint32ToBytes(number uint32) []byte

func Uint64ToBytes

func Uint64ToBytes(number uint64) []byte

func Xor

func Xor(left []byte, right []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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