marshal

package
v0.0.0-...-2208de4 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BJBool

func BJBool(b bool) ([]byte, error)

func BJMap

func BJMap(value reflect.Value) ([]byte, error)

func BJNumber

func BJNumber[T constraints.Integer | constraints.Float](n T) ([]byte, error)

func BJSlice

func BJSlice(value reflect.Value) ([]byte, error)

func BJString

func BJString(str string) ([]byte, error)

func LengthToBytes

func LengthToBytes(code uint8, l int) []byte

func Marshal

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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