github.com/goplus/igop@v0.25.0/pkg/go/build/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 build
     7  
     8  import (
     9  	q "go/build"
    10  
    11  	"go/constant"
    12  	"reflect"
    13  
    14  	"github.com/goplus/igop"
    15  )
    16  
    17  func init() {
    18  	igop.RegisterPackage(&igop.Package{
    19  		Name: "build",
    20  		Path: "go/build",
    21  		Deps: map[string]string{
    22  			"bufio":               "bufio",
    23  			"bytes":               "bytes",
    24  			"errors":              "errors",
    25  			"fmt":                 "fmt",
    26  			"go/ast":              "ast",
    27  			"go/build/constraint": "constraint",
    28  			"go/doc":              "doc",
    29  			"go/parser":           "parser",
    30  			"go/scanner":          "scanner",
    31  			"go/token":            "token",
    32  			"internal/buildcfg":   "buildcfg",
    33  			"internal/godebug":    "godebug",
    34  			"internal/goroot":     "goroot",
    35  			"internal/goversion":  "goversion",
    36  			"internal/platform":   "platform",
    37  			"io":                  "io",
    38  			"io/fs":               "fs",
    39  			"os":                  "os",
    40  			"os/exec":             "exec",
    41  			"path":                "path",
    42  			"path/filepath":       "filepath",
    43  			"runtime":             "runtime",
    44  			"sort":                "sort",
    45  			"strconv":             "strconv",
    46  			"strings":             "strings",
    47  			"unicode":             "unicode",
    48  			"unicode/utf8":        "utf8",
    49  		},
    50  		Interfaces: map[string]reflect.Type{},
    51  		NamedTypes: map[string]reflect.Type{
    52  			"Context":              reflect.TypeOf((*q.Context)(nil)).Elem(),
    53  			"Directive":            reflect.TypeOf((*q.Directive)(nil)).Elem(),
    54  			"ImportMode":           reflect.TypeOf((*q.ImportMode)(nil)).Elem(),
    55  			"MultiplePackageError": reflect.TypeOf((*q.MultiplePackageError)(nil)).Elem(),
    56  			"NoGoError":            reflect.TypeOf((*q.NoGoError)(nil)).Elem(),
    57  			"Package":              reflect.TypeOf((*q.Package)(nil)).Elem(),
    58  		},
    59  		AliasTypes: map[string]reflect.Type{},
    60  		Vars: map[string]reflect.Value{
    61  			"Default": reflect.ValueOf(&q.Default),
    62  			"ToolDir": reflect.ValueOf(&q.ToolDir),
    63  		},
    64  		Funcs: map[string]reflect.Value{
    65  			"ArchChar":      reflect.ValueOf(q.ArchChar),
    66  			"Import":        reflect.ValueOf(q.Import),
    67  			"ImportDir":     reflect.ValueOf(q.ImportDir),
    68  			"IsLocalImport": reflect.ValueOf(q.IsLocalImport),
    69  		},
    70  		TypedConsts: map[string]igop.TypedConst{
    71  			"AllowBinary":   {reflect.TypeOf(q.AllowBinary), constant.MakeInt64(int64(q.AllowBinary))},
    72  			"FindOnly":      {reflect.TypeOf(q.FindOnly), constant.MakeInt64(int64(q.FindOnly))},
    73  			"IgnoreVendor":  {reflect.TypeOf(q.IgnoreVendor), constant.MakeInt64(int64(q.IgnoreVendor))},
    74  			"ImportComment": {reflect.TypeOf(q.ImportComment), constant.MakeInt64(int64(q.ImportComment))},
    75  		},
    76  		UntypedConsts: map[string]igop.UntypedConst{},
    77  	})
    78  }