github.com/goplus/igop@v0.25.0/pkg/encoding/binary/go121_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.21 4 // +build go1.21 5 6 package binary 7 8 import ( 9 q "encoding/binary" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.Package{ 19 Name: "binary", 20 Path: "encoding/binary", 21 Deps: map[string]string{ 22 "errors": "errors", 23 "io": "io", 24 "math": "math", 25 "reflect": "reflect", 26 "sync": "sync", 27 }, 28 Interfaces: map[string]reflect.Type{ 29 "AppendByteOrder": reflect.TypeOf((*q.AppendByteOrder)(nil)).Elem(), 30 "ByteOrder": reflect.TypeOf((*q.ByteOrder)(nil)).Elem(), 31 }, 32 NamedTypes: map[string]reflect.Type{}, 33 AliasTypes: map[string]reflect.Type{}, 34 Vars: map[string]reflect.Value{ 35 "BigEndian": reflect.ValueOf(&q.BigEndian), 36 "LittleEndian": reflect.ValueOf(&q.LittleEndian), 37 "NativeEndian": reflect.ValueOf(&q.NativeEndian), 38 }, 39 Funcs: map[string]reflect.Value{ 40 "AppendUvarint": reflect.ValueOf(q.AppendUvarint), 41 "AppendVarint": reflect.ValueOf(q.AppendVarint), 42 "PutUvarint": reflect.ValueOf(q.PutUvarint), 43 "PutVarint": reflect.ValueOf(q.PutVarint), 44 "Read": reflect.ValueOf(q.Read), 45 "ReadUvarint": reflect.ValueOf(q.ReadUvarint), 46 "ReadVarint": reflect.ValueOf(q.ReadVarint), 47 "Size": reflect.ValueOf(q.Size), 48 "Uvarint": reflect.ValueOf(q.Uvarint), 49 "Varint": reflect.ValueOf(q.Varint), 50 "Write": reflect.ValueOf(q.Write), 51 }, 52 TypedConsts: map[string]igop.TypedConst{}, 53 UntypedConsts: map[string]igop.UntypedConst{ 54 "MaxVarintLen16": {"untyped int", constant.MakeInt64(int64(q.MaxVarintLen16))}, 55 "MaxVarintLen32": {"untyped int", constant.MakeInt64(int64(q.MaxVarintLen32))}, 56 "MaxVarintLen64": {"untyped int", constant.MakeInt64(int64(q.MaxVarintLen64))}, 57 }, 58 }) 59 }