encoding

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONMarshal added in v0.0.2

func JSONMarshal(v interface{}) []byte

JSONMarshal returns the JSON encoding of v.

func JSONUnmarshal added in v0.0.2

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

JSONUnmarshal parses the JSON-encoded data and stores the result

func MustCopy

func MustCopy(dst, src []byte) []byte

MustCopy makes sure that data in src are copied into dst If cap of dst < src, a new slice will be returned If cap of dst >= src, the slice only needs to be resliced

Types

This section is empty.

Jump to

Keyboard shortcuts

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