json

package
v0.0.0-...-4d895cd Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Marshal = func(v interface{}) ([]byte, error) {
	if em, ok := v.(easyjson.Marshaler); ok {
		return easyjson.Marshal(em)
	}
	return json.Marshal(v)
}
View Source
var MarshalIndent = json.MarshalIndent
View Source
var NewDecoder = jsoniter.ConfigFastest.NewDecoder
View Source
var NewEncoder = json.NewEncoder
View Source
var Unmarshal = func(data []byte, v interface{}) error {
	if em, ok := v.(easyjson.Unmarshaler); ok {
		return easyjson.Unmarshal(data, em)
	}
	return jsoniter.ConfigFastest.Unmarshal(data, v)
}

Functions

This section is empty.

Types

type Number

type Number = json.Number

type RawMessage

type RawMessage = json.RawMessage

Jump to

Keyboard shortcuts

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