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