github.com/goplus/gossa@v0.3.25/pkg/debug/plan9obj/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 plan9obj 7 8 import ( 9 q "debug/plan9obj" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.Package{ 19 Name: "plan9obj", 20 Path: "debug/plan9obj", 21 Deps: map[string]string{ 22 "encoding/binary": "binary", 23 "errors": "errors", 24 "fmt": "fmt", 25 "io": "io", 26 "os": "os", 27 }, 28 Interfaces: map[string]reflect.Type{}, 29 NamedTypes: map[string]gossa.NamedType{ 30 "File": {reflect.TypeOf((*q.File)(nil)).Elem(), "", "Close,Section,Symbols"}, 31 "FileHeader": {reflect.TypeOf((*q.FileHeader)(nil)).Elem(), "", ""}, 32 "Section": {reflect.TypeOf((*q.Section)(nil)).Elem(), "", "Data,Open"}, 33 "SectionHeader": {reflect.TypeOf((*q.SectionHeader)(nil)).Elem(), "", ""}, 34 "Sym": {reflect.TypeOf((*q.Sym)(nil)).Elem(), "", ""}, 35 }, 36 AliasTypes: map[string]reflect.Type{}, 37 Vars: map[string]reflect.Value{ 38 "ErrNoSymbols": reflect.ValueOf(&q.ErrNoSymbols), 39 }, 40 Funcs: map[string]reflect.Value{ 41 "NewFile": reflect.ValueOf(q.NewFile), 42 "Open": reflect.ValueOf(q.Open), 43 }, 44 TypedConsts: map[string]gossa.TypedConst{}, 45 UntypedConsts: map[string]gossa.UntypedConst{ 46 "Magic386": {"untyped int", constant.MakeInt64(int64(q.Magic386))}, 47 "Magic64": {"untyped int", constant.MakeInt64(int64(q.Magic64))}, 48 "MagicAMD64": {"untyped int", constant.MakeInt64(int64(q.MagicAMD64))}, 49 "MagicARM": {"untyped int", constant.MakeInt64(int64(q.MagicARM))}, 50 }, 51 }) 52 }