github.com/goplus/igop@v0.25.0/pkg/go/build/go119_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.19 && !go1.20
     4  // +build go1.19,!go1.20
     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/token":            "token",
    31  			"internal/buildcfg":   "buildcfg",
    32  			"internal/goroot":     "goroot",
    33  			"internal/goversion":  "goversion",
    34  			"io":                  "io",
    35  			"io/fs":               "fs",
    36  			"os":                  "os",
    37  			"os/exec":             "exec",
    38  			"path":                "path",
    39  			"path/filepath":       "filepath",
    40  			"runtime":             "runtime",
    41  			"sort":                "sort",
    42  			"strconv":             "strconv",
    43  			"strings":             "strings",
    44  			"unicode":             "unicode",
    45  			"unicode/utf8":        "utf8",
    46  		},
    47  		Interfaces: map[string]reflect.Type{},
    48  		NamedTypes: map[string]reflect.Type{
    49  			"Context":              reflect.TypeOf((*q.Context)(nil)).Elem(),
    50  			"ImportMode":           reflect.TypeOf((*q.ImportMode)(nil)).Elem(),
    51  			"MultiplePackageError": reflect.TypeOf((*q.MultiplePackageError)(nil)).Elem(),
    52  			"NoGoError":            reflect.TypeOf((*q.NoGoError)(nil)).Elem(),
    53  			"Package":              reflect.TypeOf((*q.Package)(nil)).Elem(),
    54  		},
    55  		AliasTypes: map[string]reflect.Type{},
    56  		Vars: map[string]reflect.Value{
    57  			"Default": reflect.ValueOf(&q.Default),
    58  			"ToolDir": reflect.ValueOf(&q.ToolDir),
    59  		},
    60  		Funcs: map[string]reflect.Value{
    61  			"ArchChar":      reflect.ValueOf(q.ArchChar),
    62  			"Import":        reflect.ValueOf(q.Import),
    63  			"ImportDir":     reflect.ValueOf(q.ImportDir),
    64  			"IsLocalImport": reflect.ValueOf(q.IsLocalImport),
    65  		},
    66  		TypedConsts: map[string]igop.TypedConst{
    67  			"AllowBinary":   {reflect.TypeOf(q.AllowBinary), constant.MakeInt64(int64(q.AllowBinary))},
    68  			"FindOnly":      {reflect.TypeOf(q.FindOnly), constant.MakeInt64(int64(q.FindOnly))},
    69  			"IgnoreVendor":  {reflect.TypeOf(q.IgnoreVendor), constant.MakeInt64(int64(q.IgnoreVendor))},
    70  			"ImportComment": {reflect.TypeOf(q.ImportComment), constant.MakeInt64(int64(q.ImportComment))},
    71  		},
    72  		UntypedConsts: map[string]igop.UntypedConst{},
    73  	})
    74  }