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

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