github.com/goplus/igop@v0.25.0/pkg/flag/go121_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.21 4 // +build go1.21 5 6 package flag 7 8 import ( 9 q "flag" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.Package{ 19 Name: "flag", 20 Path: "flag", 21 Deps: map[string]string{ 22 "encoding": "encoding", 23 "errors": "errors", 24 "fmt": "fmt", 25 "io": "io", 26 "os": "os", 27 "reflect": "reflect", 28 "runtime": "runtime", 29 "sort": "sort", 30 "strconv": "strconv", 31 "strings": "strings", 32 "time": "time", 33 }, 34 Interfaces: map[string]reflect.Type{ 35 "Getter": reflect.TypeOf((*q.Getter)(nil)).Elem(), 36 "Value": reflect.TypeOf((*q.Value)(nil)).Elem(), 37 }, 38 NamedTypes: map[string]reflect.Type{ 39 "ErrorHandling": reflect.TypeOf((*q.ErrorHandling)(nil)).Elem(), 40 "Flag": reflect.TypeOf((*q.Flag)(nil)).Elem(), 41 "FlagSet": reflect.TypeOf((*q.FlagSet)(nil)).Elem(), 42 }, 43 AliasTypes: map[string]reflect.Type{}, 44 Vars: map[string]reflect.Value{ 45 "CommandLine": reflect.ValueOf(&q.CommandLine), 46 "ErrHelp": reflect.ValueOf(&q.ErrHelp), 47 "Usage": reflect.ValueOf(&q.Usage), 48 }, 49 Funcs: map[string]reflect.Value{ 50 "Arg": reflect.ValueOf(q.Arg), 51 "Args": reflect.ValueOf(q.Args), 52 "Bool": reflect.ValueOf(q.Bool), 53 "BoolFunc": reflect.ValueOf(q.BoolFunc), 54 "BoolVar": reflect.ValueOf(q.BoolVar), 55 "Duration": reflect.ValueOf(q.Duration), 56 "DurationVar": reflect.ValueOf(q.DurationVar), 57 "Float64": reflect.ValueOf(q.Float64), 58 "Float64Var": reflect.ValueOf(q.Float64Var), 59 "Func": reflect.ValueOf(q.Func), 60 "Int": reflect.ValueOf(q.Int), 61 "Int64": reflect.ValueOf(q.Int64), 62 "Int64Var": reflect.ValueOf(q.Int64Var), 63 "IntVar": reflect.ValueOf(q.IntVar), 64 "Lookup": reflect.ValueOf(q.Lookup), 65 "NArg": reflect.ValueOf(q.NArg), 66 "NFlag": reflect.ValueOf(q.NFlag), 67 "NewFlagSet": reflect.ValueOf(q.NewFlagSet), 68 "Parse": reflect.ValueOf(q.Parse), 69 "Parsed": reflect.ValueOf(q.Parsed), 70 "PrintDefaults": reflect.ValueOf(q.PrintDefaults), 71 "Set": reflect.ValueOf(q.Set), 72 "String": reflect.ValueOf(q.String), 73 "StringVar": reflect.ValueOf(q.StringVar), 74 "TextVar": reflect.ValueOf(q.TextVar), 75 "Uint": reflect.ValueOf(q.Uint), 76 "Uint64": reflect.ValueOf(q.Uint64), 77 "Uint64Var": reflect.ValueOf(q.Uint64Var), 78 "UintVar": reflect.ValueOf(q.UintVar), 79 "UnquoteUsage": reflect.ValueOf(q.UnquoteUsage), 80 "Var": reflect.ValueOf(q.Var), 81 "Visit": reflect.ValueOf(q.Visit), 82 "VisitAll": reflect.ValueOf(q.VisitAll), 83 }, 84 TypedConsts: map[string]igop.TypedConst{ 85 "ContinueOnError": {reflect.TypeOf(q.ContinueOnError), constant.MakeInt64(int64(q.ContinueOnError))}, 86 "ExitOnError": {reflect.TypeOf(q.ExitOnError), constant.MakeInt64(int64(q.ExitOnError))}, 87 "PanicOnError": {reflect.TypeOf(q.PanicOnError), constant.MakeInt64(int64(q.PanicOnError))}, 88 }, 89 UntypedConsts: map[string]igop.UntypedConst{}, 90 }) 91 }