github.com/goplus/igop@v0.25.0/pkg/debug/plan9obj/go118_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.18 && !go1.19
     4  // +build go1.18,!go1.19
     5  
     6  package plan9obj
     7  
     8  import (
     9  	q "debug/plan9obj"
    10  
    11  	"go/constant"
    12  	"reflect"
    13  
    14  	"github.com/goplus/igop"
    15  )
    16  
    17  func init() {
    18  	igop.RegisterPackage(&igop.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]reflect.Type{
    30  			"File":          reflect.TypeOf((*q.File)(nil)).Elem(),
    31  			"FileHeader":    reflect.TypeOf((*q.FileHeader)(nil)).Elem(),
    32  			"Section":       reflect.TypeOf((*q.Section)(nil)).Elem(),
    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]igop.TypedConst{},
    45  		UntypedConsts: map[string]igop.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  }