utils

package
v2.8.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrimitiveToByteArray

func PrimitiveToByteArray(data interface{}) ([]byte, error)

PrimitiveToByteArray return byte array from a primitive type. It should not be used for non-primitive types.

func ToByteArrayOrEmpty

func ToByteArrayOrEmpty(data interface{}) []byte

func ToUint64

func ToUint64(b []byte) (uint64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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