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