github.com/goplus/igop@v0.25.0/pkg/go/build/go116_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //+build go1.16,!go1.17 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/fs": "fs", 34 "io/ioutil": "ioutil", 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]reflect.Type{ 47 "Context": reflect.TypeOf((*q.Context)(nil)).Elem(), 48 "ImportMode": reflect.TypeOf((*q.ImportMode)(nil)).Elem(), 49 "MultiplePackageError": reflect.TypeOf((*q.MultiplePackageError)(nil)).Elem(), 50 "NoGoError": reflect.TypeOf((*q.NoGoError)(nil)).Elem(), 51 "Package": reflect.TypeOf((*q.Package)(nil)).Elem(), 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]igop.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]igop.UntypedConst{}, 71 }) 72 }