binary

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT, Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromAny added in v1.6.0

func FromAny(s any) []byte

FromAny returns the result.

func FromInt added in v1.6.0

func FromInt(i int) []byte

FromInt returns the result.

func FromInt64 added in v1.6.0

func FromInt64(i int64) []byte

FromInt64 returns the result.

func FromInteger added in v1.6.0

func FromInteger[T constraints.Integer](v T) []byte

FromInteger returns the result.

func FromUint added in v1.6.0

func FromUint(i uint64) []byte

binary.LittleEndian.PutUint64(b)

func Int added in v1.6.0

func Int(b []byte) int

Int returns the result.

func Int64 added in v1.6.0

func Int64(b []byte) int64

Int64 returns the result.

func Integer added in v1.6.0

func Integer[T constraints.Integer](b []byte) T

Integer returns the result.

func Uint added in v1.6.0

func Uint(b []byte) uint64

Uint returns the result.

Types

This section is empty.

Jump to

Keyboard shortcuts

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