github.com/goplus/gossa@v0.3.25/pkg/encoding/binary/go118_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //go:build go1.18 4 // +build go1.18 5 6 package binary 7 8 import ( 9 q "encoding/binary" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.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 "ByteOrder": reflect.TypeOf((*q.ByteOrder)(nil)).Elem(), 30 }, 31 NamedTypes: map[string]gossa.NamedType{}, 32 AliasTypes: map[string]reflect.Type{}, 33 Vars: map[string]reflect.Value{ 34 "BigEndian": reflect.ValueOf(&q.BigEndian), 35 "LittleEndian": reflect.ValueOf(&q.LittleEndian), 36 }, 37 Funcs: map[string]reflect.Value{ 38 "PutUvarint": reflect.ValueOf(q.PutUvarint), 39 "PutVarint": reflect.ValueOf(q.PutVarint), 40 "Read": reflect.ValueOf(q.Read), 41 "ReadUvarint": reflect.ValueOf(q.ReadUvarint), 42 "ReadVarint": reflect.ValueOf(q.ReadVarint), 43 "Size": reflect.ValueOf(q.Size), 44 "Uvarint": reflect.ValueOf(q.Uvarint), 45 "Varint": reflect.ValueOf(q.Varint), 46 "Write": reflect.ValueOf(q.Write), 47 }, 48 TypedConsts: map[string]gossa.TypedConst{}, 49 UntypedConsts: map[string]gossa.UntypedConst{ 50 "MaxVarintLen16": {"untyped int", constant.MakeInt64(int64(q.MaxVarintLen16))}, 51 "MaxVarintLen32": {"untyped int", constant.MakeInt64(int64(q.MaxVarintLen32))}, 52 "MaxVarintLen64": {"untyped int", constant.MakeInt64(int64(q.MaxVarintLen64))}, 53 }, 54 }) 55 }