github.com/goplus/igop@v0.25.0/pkg/debug/plan9obj/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 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  			"internal/saferio": "saferio",
    26  			"io":               "io",
    27  			"os":               "os",
    28  		},
    29  		Interfaces: map[string]reflect.Type{},
    30  		NamedTypes: map[string]reflect.Type{
    31  			"File":          reflect.TypeOf((*q.File)(nil)).Elem(),
    32  			"FileHeader":    reflect.TypeOf((*q.FileHeader)(nil)).Elem(),
    33  			"Section":       reflect.TypeOf((*q.Section)(nil)).Elem(),
    34  			"SectionHeader": reflect.TypeOf((*q.SectionHeader)(nil)).Elem(),
    35  			"Sym":           reflect.TypeOf((*q.Sym)(nil)).Elem(),
    36  		},
    37  		AliasTypes: map[string]reflect.Type{},
    38  		Vars: map[string]reflect.Value{
    39  			"ErrNoSymbols": reflect.ValueOf(&q.ErrNoSymbols),
    40  		},
    41  		Funcs: map[string]reflect.Value{
    42  			"NewFile": reflect.ValueOf(q.NewFile),
    43  			"Open":    reflect.ValueOf(q.Open),
    44  		},
    45  		TypedConsts: map[string]igop.TypedConst{},
    46  		UntypedConsts: map[string]igop.UntypedConst{
    47  			"Magic386":   {"untyped int", constant.MakeInt64(int64(q.Magic386))},
    48  			"Magic64":    {"untyped int", constant.MakeInt64(int64(q.Magic64))},
    49  			"MagicAMD64": {"untyped int", constant.MakeInt64(int64(q.MagicAMD64))},
    50  			"MagicARM":   {"untyped int", constant.MakeInt64(int64(q.MagicARM))},
    51  		},
    52  	})
    53  }