github.com/goplus/gossa@v0.3.25/pkg/go/build/go114_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.14,!go1.15
     4  
     5  package build
     6  
     7  import (
     8  	q "go/build"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.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  			"log":                "log",
    35  			"os":                 "os",
    36  			"path":               "path",
    37  			"path/filepath":      "filepath",
    38  			"runtime":            "runtime",
    39  			"sort":               "sort",
    40  			"strconv":            "strconv",
    41  			"strings":            "strings",
    42  			"unicode":            "unicode",
    43  			"unicode/utf8":       "utf8",
    44  		},
    45  		Interfaces: map[string]reflect.Type{},
    46  		NamedTypes: map[string]gossa.NamedType{
    47  			"Context":              {reflect.TypeOf((*q.Context)(nil)).Elem(), "", "Import,ImportDir,MatchFile,SrcDirs,goodOSArchFile,gopath,hasSubdir,importGo,isAbsPath,isDir,isFile,joinPath,makePathsAbsolute,match,matchFile,openFile,readDir,saveCgo,shouldBuild,splitPathList"},
    48  			"ImportMode":           {reflect.TypeOf((*q.ImportMode)(nil)).Elem(), "", ""},
    49  			"MultiplePackageError": {reflect.TypeOf((*q.MultiplePackageError)(nil)).Elem(), "", "Error"},
    50  			"NoGoError":            {reflect.TypeOf((*q.NoGoError)(nil)).Elem(), "", "Error"},
    51  			"Package":              {reflect.TypeOf((*q.Package)(nil)).Elem(), "", "IsCommand"},
    52  		},
    53  		AliasTypes: map[string]reflect.Type{},
    54  		Vars: map[string]reflect.Value{
    55  			"Default": reflect.ValueOf(&q.Default),
    56  			"ToolDir": reflect.ValueOf(&q.ToolDir),
    57  		},
    58  		Funcs: map[string]reflect.Value{
    59  			"ArchChar":      reflect.ValueOf(q.ArchChar),
    60  			"Import":        reflect.ValueOf(q.Import),
    61  			"ImportDir":     reflect.ValueOf(q.ImportDir),
    62  			"IsLocalImport": reflect.ValueOf(q.IsLocalImport),
    63  		},
    64  		TypedConsts: map[string]gossa.TypedConst{
    65  			"AllowBinary":   {reflect.TypeOf(q.AllowBinary), constant.MakeInt64(int64(q.AllowBinary))},
    66  			"FindOnly":      {reflect.TypeOf(q.FindOnly), constant.MakeInt64(int64(q.FindOnly))},
    67  			"IgnoreVendor":  {reflect.TypeOf(q.IgnoreVendor), constant.MakeInt64(int64(q.IgnoreVendor))},
    68  			"ImportComment": {reflect.TypeOf(q.ImportComment), constant.MakeInt64(int64(q.ImportComment))},
    69  		},
    70  		UntypedConsts: map[string]gossa.UntypedConst{},
    71  	})
    72  }