-
Notifications
You must be signed in to change notification settings - Fork 14
/
go118_export.go
executable file
·55 lines (49 loc) · 1.53 KB
/
go118_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
// export by github.com/goplus/igop/cmd/qexp
//go:build go1.18
// +build go1.18
package binary
import (
q "encoding/binary"
"go/constant"
"reflect"
"github.com/goplus/igop"
)
func init() {
igop.RegisterPackage(&igop.Package{
Name: "binary",
Path: "encoding/binary",
Deps: map[string]string{
"errors": "errors",
"io": "io",
"math": "math",
"reflect": "reflect",
"sync": "sync",
},
Interfaces: map[string]reflect.Type{
"ByteOrder": reflect.TypeOf((*q.ByteOrder)(nil)).Elem(),
},
NamedTypes: map[string]igop.NamedType{},
AliasTypes: map[string]reflect.Type{},
Vars: map[string]reflect.Value{
"BigEndian": reflect.ValueOf(&q.BigEndian),
"LittleEndian": reflect.ValueOf(&q.LittleEndian),
},
Funcs: map[string]reflect.Value{
"PutUvarint": reflect.ValueOf(q.PutUvarint),
"PutVarint": reflect.ValueOf(q.PutVarint),
"Read": reflect.ValueOf(q.Read),
"ReadUvarint": reflect.ValueOf(q.ReadUvarint),
"ReadVarint": reflect.ValueOf(q.ReadVarint),
"Size": reflect.ValueOf(q.Size),
"Uvarint": reflect.ValueOf(q.Uvarint),
"Varint": reflect.ValueOf(q.Varint),
"Write": reflect.ValueOf(q.Write),
},
TypedConsts: map[string]igop.TypedConst{},
UntypedConsts: map[string]igop.UntypedConst{
"MaxVarintLen16": {"untyped int", constant.MakeInt64(int64(q.MaxVarintLen16))},
"MaxVarintLen32": {"untyped int", constant.MakeInt64(int64(q.MaxVarintLen32))},
"MaxVarintLen64": {"untyped int", constant.MakeInt64(int64(q.MaxVarintLen64))},
},
})
}