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

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //+build go1.14,!go1.15
     4  
     5  package plan9obj
     6  
     7  import (
     8  	q "debug/plan9obj"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "plan9obj",
    19  		Path: "debug/plan9obj",
    20  		Deps: map[string]string{
    21  			"encoding/binary": "binary",
    22  			"errors":          "errors",
    23  			"fmt":             "fmt",
    24  			"io":              "io",
    25  			"os":              "os",
    26  		},
    27  		Interfaces: map[string]reflect.Type{},
    28  		NamedTypes: map[string]reflect.Type{
    29  			"File":          reflect.TypeOf((*q.File)(nil)).Elem(),
    30  			"FileHeader":    reflect.TypeOf((*q.FileHeader)(nil)).Elem(),
    31  			"Section":       reflect.TypeOf((*q.Section)(nil)).Elem(),
    32  			"SectionHeader": reflect.TypeOf((*q.SectionHeader)(nil)).Elem(),
    33  			"Sym":           reflect.TypeOf((*q.Sym)(nil)).Elem(),
    34  		},
    35  		AliasTypes: map[string]reflect.Type{},
    36  		Vars:       map[string]reflect.Value{},
    37  		Funcs: map[string]reflect.Value{
    38  			"NewFile": reflect.ValueOf(q.NewFile),
    39  			"Open":    reflect.ValueOf(q.Open),
    40  		},
    41  		TypedConsts: map[string]igop.TypedConst{},
    42  		UntypedConsts: map[string]igop.UntypedConst{
    43  			"Magic386":   {"untyped int", constant.MakeInt64(int64(q.Magic386))},
    44  			"Magic64":    {"untyped int", constant.MakeInt64(int64(q.Magic64))},
    45  			"MagicAMD64": {"untyped int", constant.MakeInt64(int64(q.MagicAMD64))},
    46  			"MagicARM":   {"untyped int", constant.MakeInt64(int64(q.MagicARM))},
    47  		},
    48  	})
    49  }