/
go121_export.go
executable file
·45 lines (39 loc) · 1.07 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
// export by github.com/goplus/igop/cmd/qexp
//go:build go1.21
// +build go1.21
package crc64
import (
q "hash/crc64"
"go/constant"
"reflect"
"github.com/goplus/igop"
)
func init() {
igop.RegisterPackage(&igop.Package{
Name: "crc64",
Path: "hash/crc64",
Deps: map[string]string{
"errors": "errors",
"hash": "hash",
"sync": "sync",
},
Interfaces: map[string]reflect.Type{},
NamedTypes: map[string]reflect.Type{
"Table": reflect.TypeOf((*q.Table)(nil)).Elem(),
},
AliasTypes: map[string]reflect.Type{},
Vars: map[string]reflect.Value{},
Funcs: map[string]reflect.Value{
"Checksum": reflect.ValueOf(q.Checksum),
"MakeTable": reflect.ValueOf(q.MakeTable),
"New": reflect.ValueOf(q.New),
"Update": reflect.ValueOf(q.Update),
},
TypedConsts: map[string]igop.TypedConst{},
UntypedConsts: map[string]igop.UntypedConst{
"ECMA": {"untyped int", constant.MakeUint64(uint64(q.ECMA))},
"ISO": {"untyped int", constant.MakeUint64(uint64(q.ISO))},
"Size": {"untyped int", constant.MakeInt64(int64(q.Size))},
},
})
}