github.com/goplus/igop@v0.25.0/pkg/go/build/go118_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.18 && !go1.19 4 // +build go1.18,!go1.19 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/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]reflect.Type{ 50 "Context": reflect.TypeOf((*q.Context)(nil)).Elem(), 51 "ImportMode": reflect.TypeOf((*q.ImportMode)(nil)).Elem(), 52 "MultiplePackageError": reflect.TypeOf((*q.MultiplePackageError)(nil)).Elem(), 53 "NoGoError": reflect.TypeOf((*q.NoGoError)(nil)).Elem(), 54 "Package": reflect.TypeOf((*q.Package)(nil)).Elem(), 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]igop.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]igop.UntypedConst{}, 74 }) 75 }