github.com/goplus/igop@v0.25.0/pkg/encoding/json/go114_export.go (about)

     1  // export by github.com/goplus/igop/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/igop"
    13  )
    14  
    15  func init() {
    16  	igop.RegisterPackage(&igop.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]reflect.Type{
    42  			"Decoder":               reflect.TypeOf((*q.Decoder)(nil)).Elem(),
    43  			"Delim":                 reflect.TypeOf((*q.Delim)(nil)).Elem(),
    44  			"Encoder":               reflect.TypeOf((*q.Encoder)(nil)).Elem(),
    45  			"InvalidUTF8Error":      reflect.TypeOf((*q.InvalidUTF8Error)(nil)).Elem(),
    46  			"InvalidUnmarshalError": reflect.TypeOf((*q.InvalidUnmarshalError)(nil)).Elem(),
    47  			"MarshalerError":        reflect.TypeOf((*q.MarshalerError)(nil)).Elem(),
    48  			"Number":                reflect.TypeOf((*q.Number)(nil)).Elem(),
    49  			"RawMessage":            reflect.TypeOf((*q.RawMessage)(nil)).Elem(),
    50  			"SyntaxError":           reflect.TypeOf((*q.SyntaxError)(nil)).Elem(),
    51  			"UnmarshalFieldError":   reflect.TypeOf((*q.UnmarshalFieldError)(nil)).Elem(),
    52  			"UnmarshalTypeError":    reflect.TypeOf((*q.UnmarshalTypeError)(nil)).Elem(),
    53  			"UnsupportedTypeError":  reflect.TypeOf((*q.UnsupportedTypeError)(nil)).Elem(),
    54  			"UnsupportedValueError": reflect.TypeOf((*q.UnsupportedValueError)(nil)).Elem(),
    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]igop.TypedConst{},
    70  		UntypedConsts: map[string]igop.UntypedConst{},
    71  	})
    72  }