github.com/jxskiss/gopkg@v0.17.3/json/json_gojson.go (about) 1 // +build gojson jsoniter 2 3 package json 4 5 import "github.com/goccy/go-json" 6 7 type ( 8 Delim = json.Delim 9 Token = json.Token 10 Number = json.Number 11 RawMessage = json.RawMessage 12 13 InvalidUTF8Error = json.InvalidUTF8Error 14 InvalidUnmarshalError = json.InvalidUnmarshalError 15 MarshalerError = json.MarshalerError 16 SyntaxError = json.SyntaxError 17 UnmarshalFieldError = json.UnmarshalFieldError 18 UnmarshalTypeError = json.UnmarshalTypeError 19 UnsupportedTypeError = json.UnsupportedTypeError 20 UnsupportedValueError = json.UnsupportedValueError 21 ) 22 23 var ( 24 _Marshal = json.Marshal 25 _MarshalIndent = json.MarshalIndent 26 _Unmarshal = json.Unmarshal 27 ) 28 29 func _MarshalMapUnordered(v interface{}) ([]byte, error) { 30 return json.MarshalWithOption(v, json.UnorderedMap()) 31 } 32 33 var ( 34 Compact = json.Compact 35 HTMLEscape = json.HTMLEscape 36 Indent = json.Indent 37 Valid = json.Valid 38 ) 39 40 type ( 41 aliasEncoder = json.Encoder 42 aliasDecoder = json.Decoder 43 ) 44 45 var ( 46 _NewEncoder = json.NewEncoder 47 _NewDecoder = json.NewDecoder 48 )