github.com/goplus/gossa@v0.3.25/pkg/encoding/json/go114_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.14,!go1.15
     4  
     5  package json
     6  
     7  import (
     8  	q "encoding/json"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "json",
    18  		Path: "encoding/json",
    19  		Deps: map[string]string{
    20  			"bytes":           "bytes",
    21  			"encoding":        "encoding",
    22  			"encoding/base64": "base64",
    23  			"errors":          "errors",
    24  			"fmt":             "fmt",
    25  			"io":              "io",
    26  			"math":            "math",
    27  			"reflect":         "reflect",
    28  			"sort":            "sort",
    29  			"strconv":         "strconv",
    30  			"strings":         "strings",
    31  			"sync":            "sync",
    32  			"unicode":         "unicode",
    33  			"unicode/utf16":   "utf16",
    34  			"unicode/utf8":    "utf8",
    35  		},
    36  		Interfaces: map[string]reflect.Type{
    37  			"Marshaler":   reflect.TypeOf((*q.Marshaler)(nil)).Elem(),
    38  			"Token":       reflect.TypeOf((*q.Token)(nil)).Elem(),
    39  			"Unmarshaler": reflect.TypeOf((*q.Unmarshaler)(nil)).Elem(),
    40  		},
    41  		NamedTypes: map[string]gossa.NamedType{
    42  			"Decoder":               {reflect.TypeOf((*q.Decoder)(nil)).Elem(), "", "Buffered,Decode,DisallowUnknownFields,InputOffset,More,Token,UseNumber,peek,readValue,refill,tokenError,tokenPrepareForDecode,tokenValueAllowed,tokenValueEnd"},
    43  			"Delim":                 {reflect.TypeOf((*q.Delim)(nil)).Elem(), "String", ""},
    44  			"Encoder":               {reflect.TypeOf((*q.Encoder)(nil)).Elem(), "", "Encode,SetEscapeHTML,SetIndent"},
    45  			"InvalidUTF8Error":      {reflect.TypeOf((*q.InvalidUTF8Error)(nil)).Elem(), "", "Error"},
    46  			"InvalidUnmarshalError": {reflect.TypeOf((*q.InvalidUnmarshalError)(nil)).Elem(), "", "Error"},
    47  			"MarshalerError":        {reflect.TypeOf((*q.MarshalerError)(nil)).Elem(), "", "Error,Unwrap"},
    48  			"Number":                {reflect.TypeOf((*q.Number)(nil)).Elem(), "Float64,Int64,String", ""},
    49  			"RawMessage":            {reflect.TypeOf((*q.RawMessage)(nil)).Elem(), "MarshalJSON", "UnmarshalJSON"},
    50  			"SyntaxError":           {reflect.TypeOf((*q.SyntaxError)(nil)).Elem(), "", "Error"},
    51  			"UnmarshalFieldError":   {reflect.TypeOf((*q.UnmarshalFieldError)(nil)).Elem(), "", "Error"},
    52  			"UnmarshalTypeError":    {reflect.TypeOf((*q.UnmarshalTypeError)(nil)).Elem(), "", "Error"},
    53  			"UnsupportedTypeError":  {reflect.TypeOf((*q.UnsupportedTypeError)(nil)).Elem(), "", "Error"},
    54  			"UnsupportedValueError": {reflect.TypeOf((*q.UnsupportedValueError)(nil)).Elem(), "", "Error"},
    55  		},
    56  		AliasTypes: map[string]reflect.Type{},
    57  		Vars:       map[string]reflect.Value{},
    58  		Funcs: map[string]reflect.Value{
    59  			"Compact":       reflect.ValueOf(q.Compact),
    60  			"HTMLEscape":    reflect.ValueOf(q.HTMLEscape),
    61  			"Indent":        reflect.ValueOf(q.Indent),
    62  			"Marshal":       reflect.ValueOf(q.Marshal),
    63  			"MarshalIndent": reflect.ValueOf(q.MarshalIndent),
    64  			"NewDecoder":    reflect.ValueOf(q.NewDecoder),
    65  			"NewEncoder":    reflect.ValueOf(q.NewEncoder),
    66  			"Unmarshal":     reflect.ValueOf(q.Unmarshal),
    67  			"Valid":         reflect.ValueOf(q.Valid),
    68  		},
    69  		TypedConsts:   map[string]gossa.TypedConst{},
    70  		UntypedConsts: map[string]gossa.UntypedConst{},
    71  	})
    72  }