jsonz

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustIndent added in v1.1.0

func MustIndent(src []byte, prefix, indent string) []byte

MustIndent is like json.Indent but panics on error.

func MustIndentDefault added in v1.4.0

func MustIndentDefault(src []byte) []byte

MustIndentDefault is like MustIndent with prefix = "" and indent = " ".

func MustIndentDefaultString added in v1.4.0

func MustIndentDefaultString(src []byte) string

MustIndentDefaultString is like MustIndentString with prefix = "" and indent = " ".

func MustIndentString added in v1.4.0

func MustIndentString(src []byte, prefix, indent string) string

MustIndentString is like MustIndent but returns a string.

func MustMarshal

func MustMarshal(v interface{}) []byte

MustMarshal is like json.Marshal but panics on error.

func MustMarshalIndent

func MustMarshalIndent(v interface{}, prefix, indent string) []byte

MustMarshalIndent is like json.MarshalIndent but panics on error.

func MustMarshalIndentDefault added in v1.4.0

func MustMarshalIndentDefault(v interface{}) []byte

MustMarshalIndentDefault is like MustMarshalIndent with prefix = "" and indent = " ".

func MustMarshalIndentDefaultString added in v1.4.0

func MustMarshalIndentDefaultString(v interface{}) string

MustMarshalIndentDefaultString is like MustMarshalIndentDefault with prefix = "" and indent = " ".

func MustMarshalIndentString added in v1.4.0

func MustMarshalIndentString(v interface{}, prefix, indent string) string

MustMarshalIndentString is like MustMarshalIndent but returns a string.

func MustMarshalString added in v1.4.0

func MustMarshalString(v interface{}) string

MustMarshalString is like MustMarshal but returns a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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