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