github.com/goplus/igop@v0.25.0/pkg/flag/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 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 "sort": "sort", 29 "strconv": "strconv", 30 "strings": "strings", 31 "time": "time", 32 }, 33 Interfaces: map[string]reflect.Type{ 34 "Getter": reflect.TypeOf((*q.Getter)(nil)).Elem(), 35 "Value": reflect.TypeOf((*q.Value)(nil)).Elem(), 36 }, 37 NamedTypes: map[string]reflect.Type{ 38 "ErrorHandling": reflect.TypeOf((*q.ErrorHandling)(nil)).Elem(), 39 "Flag": reflect.TypeOf((*q.Flag)(nil)).Elem(), 40 "FlagSet": reflect.TypeOf((*q.FlagSet)(nil)).Elem(), 41 }, 42 AliasTypes: map[string]reflect.Type{}, 43 Vars: map[string]reflect.Value{ 44 "CommandLine": reflect.ValueOf(&q.CommandLine), 45 "ErrHelp": reflect.ValueOf(&q.ErrHelp), 46 "Usage": reflect.ValueOf(&q.Usage), 47 }, 48 Funcs: map[string]reflect.Value{ 49 "Arg": reflect.ValueOf(q.Arg), 50 "Args": reflect.ValueOf(q.Args), 51 "Bool": reflect.ValueOf(q.Bool), 52 "BoolVar": reflect.ValueOf(q.BoolVar), 53 "Duration": reflect.ValueOf(q.Duration), 54 "DurationVar": reflect.ValueOf(q.DurationVar), 55 "Float64": reflect.ValueOf(q.Float64), 56 "Float64Var": reflect.ValueOf(q.Float64Var), 57 "Func": reflect.ValueOf(q.Func), 58 "Int": reflect.ValueOf(q.Int), 59 "Int64": reflect.ValueOf(q.Int64), 60 "Int64Var": reflect.ValueOf(q.Int64Var), 61 "IntVar": reflect.ValueOf(q.IntVar), 62 "Lookup": reflect.ValueOf(q.Lookup), 63 "NArg": reflect.ValueOf(q.NArg), 64 "NFlag": reflect.ValueOf(q.NFlag), 65 "NewFlagSet": reflect.ValueOf(q.NewFlagSet), 66 "Parse": reflect.ValueOf(q.Parse), 67 "Parsed": reflect.ValueOf(q.Parsed), 68 "PrintDefaults": reflect.ValueOf(q.PrintDefaults), 69 "Set": reflect.ValueOf(q.Set), 70 "String": reflect.ValueOf(q.String), 71 "StringVar": reflect.ValueOf(q.StringVar), 72 "TextVar": reflect.ValueOf(q.TextVar), 73 "Uint": reflect.ValueOf(q.Uint), 74 "Uint64": reflect.ValueOf(q.Uint64), 75 "Uint64Var": reflect.ValueOf(q.Uint64Var), 76 "UintVar": reflect.ValueOf(q.UintVar), 77 "UnquoteUsage": reflect.ValueOf(q.UnquoteUsage), 78 "Var": reflect.ValueOf(q.Var), 79 "Visit": reflect.ValueOf(q.Visit), 80 "VisitAll": reflect.ValueOf(q.VisitAll), 81 }, 82 TypedConsts: map[string]igop.TypedConst{ 83 "ContinueOnError": {reflect.TypeOf(q.ContinueOnError), constant.MakeInt64(int64(q.ContinueOnError))}, 84 "ExitOnError": {reflect.TypeOf(q.ExitOnError), constant.MakeInt64(int64(q.ExitOnError))}, 85 "PanicOnError": {reflect.TypeOf(q.PanicOnError), constant.MakeInt64(int64(q.PanicOnError))}, 86 }, 87 UntypedConsts: map[string]igop.UntypedConst{}, 88 }) 89 }