safe_json

package
v1.2.15 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From added in v1.2.15

func From(s string, v any)

func Pretty added in v1.2.15

func Pretty(v any) string

func SafeDecoder

func SafeDecoder(rd io.Reader) util.JSONDecoder

func SafeEncoder

func SafeEncoder(wr io.Writer) util.JSONEncoder

func SafeMarshal

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

func SafeMarshalPretty

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

func SafeUnmarshal

func SafeUnmarshal(b []byte, v any) error

func String added in v1.2.15

func String(v any) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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