-
Notifications
You must be signed in to change notification settings - Fork 14
/
go121_export.go
executable file
·57 lines (51 loc) · 1.55 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
// export by github.com/goplus/igop/cmd/qexp
//go:build go1.21
// +build go1.21
package gob
import (
q "encoding/gob"
"reflect"
"github.com/goplus/igop"
)
func init() {
igop.RegisterPackage(&igop.Package{
Name: "gob",
Path: "encoding/gob",
Deps: map[string]string{
"bufio": "bufio",
"encoding": "encoding",
"encoding/binary": "binary",
"errors": "errors",
"fmt": "fmt",
"internal/saferio": "saferio",
"io": "io",
"math": "math",
"math/bits": "bits",
"os": "os",
"reflect": "reflect",
"sync": "sync",
"sync/atomic": "atomic",
"unicode": "unicode",
"unicode/utf8": "utf8",
},
Interfaces: map[string]reflect.Type{
"GobDecoder": reflect.TypeOf((*q.GobDecoder)(nil)).Elem(),
"GobEncoder": reflect.TypeOf((*q.GobEncoder)(nil)).Elem(),
},
NamedTypes: map[string]reflect.Type{
"CommonType": reflect.TypeOf((*q.CommonType)(nil)).Elem(),
"Decoder": reflect.TypeOf((*q.Decoder)(nil)).Elem(),
"Encoder": reflect.TypeOf((*q.Encoder)(nil)).Elem(),
},
AliasTypes: map[string]reflect.Type{},
Vars: map[string]reflect.Value{},
Funcs: map[string]reflect.Value{
"NewDecoder": reflect.ValueOf(q.NewDecoder),
"NewEncoder": reflect.ValueOf(q.NewEncoder),
"Register": reflect.ValueOf(q.Register),
"RegisterName": reflect.ValueOf(q.RegisterName),
},
TypedConsts: map[string]igop.TypedConst{},
UntypedConsts: map[string]igop.UntypedConst{},
})
}