json

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format added in v0.16.0

func Format(jsonStr []byte) ([]byte, error)

Format json格式化

func Marshal

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

Marshal marshals the struct to json data. escapeHTML=false disables this behavior.escape &, <, and > to \u0026, \u003c, and \u003e

func Marshal2

func Marshal2(v interface{}, escapeHTML bool) ([]byte, error)

func Unmarshal

func Unmarshal(b []byte, m interface{}) error

Unmarshal json data to struct

Types

This section is empty.

Jump to

Keyboard shortcuts

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