typex

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidData = errors.New("invalid data")

Functions

func ByteToInt64

func ByteToInt64(data []byte) (int64, error)

func BytesToInts added in v1.0.4

func BytesToInts(b []byte) []int

func BytesToString

func BytesToString(b []byte) string

func Int64ToByte

func Int64ToByte(data int64) ([]byte, error)

func JsonMarshal

func JsonMarshal(v interface{}) ([]byte, error)

func JsonUnmarshal

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

func JsonUnmarshalReader

func JsonUnmarshalReader(reader io.Reader, v interface{}) error

func ListToBytes added in v1.0.4

func ListToBytes(l *list.List) []byte

func ListToInts added in v1.0.4

func ListToInts(l *list.List) []int

func StringToBytes

func StringToBytes(s string) []byte

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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