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

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.19 && !go1.20
     4  // +build go1.19,!go1.20
     5  
     6  package json
     7  
     8  import (
     9  	q "encoding/json"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.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]reflect.Type{
    43  			"Decoder":               reflect.TypeOf((*q.Decoder)(nil)).Elem(),
    44  			"Delim":                 reflect.TypeOf((*q.Delim)(nil)).Elem(),
    45  			"Encoder":               reflect.TypeOf((*q.Encoder)(nil)).Elem(),
    46  			"InvalidUTF8Error":      reflect.TypeOf((*q.InvalidUTF8Error)(nil)).Elem(),
    47  			"InvalidUnmarshalError": reflect.TypeOf((*q.InvalidUnmarshalError)(nil)).Elem(),
    48  			"MarshalerError":        reflect.TypeOf((*q.MarshalerError)(nil)).Elem(),
    49  			"Number":                reflect.TypeOf((*q.Number)(nil)).Elem(),
    50  			"RawMessage":            reflect.TypeOf((*q.RawMessage)(nil)).Elem(),
    51  			"SyntaxError":           reflect.TypeOf((*q.SyntaxError)(nil)).Elem(),
    52  			"UnmarshalFieldError":   reflect.TypeOf((*q.UnmarshalFieldError)(nil)).Elem(),
    53  			"UnmarshalTypeError":    reflect.TypeOf((*q.UnmarshalTypeError)(nil)).Elem(),
    54  			"UnsupportedTypeError":  reflect.TypeOf((*q.UnsupportedTypeError)(nil)).Elem(),
    55  			"UnsupportedValueError": reflect.TypeOf((*q.UnsupportedValueError)(nil)).Elem(),
    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]igop.TypedConst{},
    71  		UntypedConsts: map[string]igop.UntypedConst{},
    72  	})
    73  }