github.com/goplus/igop@v0.25.0/pkg/debug/buildinfo/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 buildinfo
     7  
     8  import (
     9  	q "debug/buildinfo"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "buildinfo",
    19  		Path: "debug/buildinfo",
    20  		Deps: map[string]string{
    21  			"bytes":            "bytes",
    22  			"debug/elf":        "elf",
    23  			"debug/macho":      "macho",
    24  			"debug/pe":         "pe",
    25  			"debug/plan9obj":   "plan9obj",
    26  			"encoding/binary":  "binary",
    27  			"errors":           "errors",
    28  			"fmt":              "fmt",
    29  			"internal/saferio": "saferio",
    30  			"internal/xcoff":   "xcoff",
    31  			"io":               "io",
    32  			"io/fs":            "fs",
    33  			"os":               "os",
    34  			"runtime/debug":    "debug",
    35  		},
    36  		Interfaces: map[string]reflect.Type{},
    37  		NamedTypes: map[string]reflect.Type{},
    38  		AliasTypes: map[string]reflect.Type{
    39  			"BuildInfo": reflect.TypeOf((*q.BuildInfo)(nil)).Elem(),
    40  		},
    41  		Vars: map[string]reflect.Value{},
    42  		Funcs: map[string]reflect.Value{
    43  			"Read":     reflect.ValueOf(q.Read),
    44  			"ReadFile": reflect.ValueOf(q.ReadFile),
    45  		},
    46  		TypedConsts:   map[string]igop.TypedConst{},
    47  		UntypedConsts: map[string]igop.UntypedConst{},
    48  	})
    49  }