github.com/goplus/igop@v0.25.0/pkg/go/build/go120_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.20 && !go1.21 4 // +build go1.20,!go1.21 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/scanner": "scanner", 31 "go/token": "token", 32 "internal/buildcfg": "buildcfg", 33 "internal/godebug": "godebug", 34 "internal/goroot": "goroot", 35 "internal/goversion": "goversion", 36 "io": "io", 37 "io/fs": "fs", 38 "os": "os", 39 "os/exec": "exec", 40 "path": "path", 41 "path/filepath": "filepath", 42 "runtime": "runtime", 43 "sort": "sort", 44 "strconv": "strconv", 45 "strings": "strings", 46 "unicode": "unicode", 47 "unicode/utf8": "utf8", 48 }, 49 Interfaces: map[string]reflect.Type{}, 50 NamedTypes: map[string]reflect.Type{ 51 "Context": reflect.TypeOf((*q.Context)(nil)).Elem(), 52 "ImportMode": reflect.TypeOf((*q.ImportMode)(nil)).Elem(), 53 "MultiplePackageError": reflect.TypeOf((*q.MultiplePackageError)(nil)).Elem(), 54 "NoGoError": reflect.TypeOf((*q.NoGoError)(nil)).Elem(), 55 "Package": reflect.TypeOf((*q.Package)(nil)).Elem(), 56 }, 57 AliasTypes: map[string]reflect.Type{}, 58 Vars: map[string]reflect.Value{ 59 "Default": reflect.ValueOf(&q.Default), 60 "ToolDir": reflect.ValueOf(&q.ToolDir), 61 }, 62 Funcs: map[string]reflect.Value{ 63 "ArchChar": reflect.ValueOf(q.ArchChar), 64 "Import": reflect.ValueOf(q.Import), 65 "ImportDir": reflect.ValueOf(q.ImportDir), 66 "IsLocalImport": reflect.ValueOf(q.IsLocalImport), 67 }, 68 TypedConsts: map[string]igop.TypedConst{ 69 "AllowBinary": {reflect.TypeOf(q.AllowBinary), constant.MakeInt64(int64(q.AllowBinary))}, 70 "FindOnly": {reflect.TypeOf(q.FindOnly), constant.MakeInt64(int64(q.FindOnly))}, 71 "IgnoreVendor": {reflect.TypeOf(q.IgnoreVendor), constant.MakeInt64(int64(q.IgnoreVendor))}, 72 "ImportComment": {reflect.TypeOf(q.ImportComment), constant.MakeInt64(int64(q.ImportComment))}, 73 }, 74 UntypedConsts: map[string]igop.UntypedConst{}, 75 }) 76 }