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

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //+build go1.15,!go1.16
     4  
     5  package build
     6  
     7  import (
     8  	q "go/build"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "build",
    19  		Path: "go/build",
    20  		Deps: map[string]string{
    21  			"bufio":              "bufio",
    22  			"bytes":              "bytes",
    23  			"errors":             "errors",
    24  			"fmt":                "fmt",
    25  			"go/ast":             "ast",
    26  			"go/doc":             "doc",
    27  			"go/parser":          "parser",
    28  			"go/token":           "token",
    29  			"internal/execabs":   "execabs",
    30  			"internal/goroot":    "goroot",
    31  			"internal/goversion": "goversion",
    32  			"io":                 "io",
    33  			"io/ioutil":          "ioutil",
    34  			"os":                 "os",
    35  			"path":               "path",
    36  			"path/filepath":      "filepath",
    37  			"runtime":            "runtime",
    38  			"sort":               "sort",
    39  			"strconv":            "strconv",
    40  			"strings":            "strings",
    41  			"unicode":            "unicode",
    42  			"unicode/utf8":       "utf8",
    43  		},
    44  		Interfaces: map[string]reflect.Type{},
    45  		NamedTypes: map[string]reflect.Type{
    46  			"Context":              reflect.TypeOf((*q.Context)(nil)).Elem(),
    47  			"ImportMode":           reflect.TypeOf((*q.ImportMode)(nil)).Elem(),
    48  			"MultiplePackageError": reflect.TypeOf((*q.MultiplePackageError)(nil)).Elem(),
    49  			"NoGoError":            reflect.TypeOf((*q.NoGoError)(nil)).Elem(),
    50  			"Package":              reflect.TypeOf((*q.Package)(nil)).Elem(),
    51  		},
    52  		AliasTypes: map[string]reflect.Type{},
    53  		Vars: map[string]reflect.Value{
    54  			"Default": reflect.ValueOf(&q.Default),
    55  			"ToolDir": reflect.ValueOf(&q.ToolDir),
    56  		},
    57  		Funcs: map[string]reflect.Value{
    58  			"ArchChar":      reflect.ValueOf(q.ArchChar),
    59  			"Import":        reflect.ValueOf(q.Import),
    60  			"ImportDir":     reflect.ValueOf(q.ImportDir),
    61  			"IsLocalImport": reflect.ValueOf(q.IsLocalImport),
    62  		},
    63  		TypedConsts: map[string]igop.TypedConst{
    64  			"AllowBinary":   {reflect.TypeOf(q.AllowBinary), constant.MakeInt64(int64(q.AllowBinary))},
    65  			"FindOnly":      {reflect.TypeOf(q.FindOnly), constant.MakeInt64(int64(q.FindOnly))},
    66  			"IgnoreVendor":  {reflect.TypeOf(q.IgnoreVendor), constant.MakeInt64(int64(q.IgnoreVendor))},
    67  			"ImportComment": {reflect.TypeOf(q.ImportComment), constant.MakeInt64(int64(q.ImportComment))},
    68  		},
    69  		UntypedConsts: map[string]igop.UntypedConst{},
    70  	})
    71  }