Help us shape the future of Go! Take the 2026 Go Developer Survey

jsonx

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(v any) ([]byte, error)

Marshal marshals v into json bytes, without escaping HTML and removes the trailing newline.

func MarshalToString

func MarshalToString(v any) (string, error)

MarshalToString marshals v into a string.

func Unmarshal

func Unmarshal(data []byte, v any) error

Unmarshal unmarshals data bytes into v.

func UnmarshalFromReader

func UnmarshalFromReader(reader io.Reader, v any) error

UnmarshalFromReader unmarshals v from reader.

func UnmarshalFromString

func UnmarshalFromString(str string, v any) error

UnmarshalFromString unmarshals v from str.

Types

This section is empty.

Jump to

Keyboard shortcuts

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