1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 00:22:41 +08:00
Files
go-mixed/json/jsoniter.go
2022-06-17 15:25:23 +08:00

23 lines
425 B
Go

//go:build jsoniter
// +build jsoniter
package json
import (
jsoniter "github.com/json-iterator/go"
"github.com/json-iterator/go/extra"
)
func init() {
extra.RegisterFuzzyDecoders()
}
var (
json = jsoniter.ConfigCompatibleWithStandardLibrary
Marshal = json.Marshal
Unmarshal = json.Unmarshal
MarshalIndent = json.MarshalIndent
NewDecoder = json.NewDecoder
NewEncoder = json.NewEncoder
)