github.com/goplus/igop@v0.25.0/pkg/flag/go114_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //+build go1.14,!go1.15 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 "Int": reflect.ValueOf(q.Int), 56 "Int64": reflect.ValueOf(q.Int64), 57 "Int64Var": reflect.ValueOf(q.Int64Var), 58 "IntVar": reflect.ValueOf(q.IntVar), 59 "Lookup": reflect.ValueOf(q.Lookup), 60 "NArg": reflect.ValueOf(q.NArg), 61 "NFlag": reflect.ValueOf(q.NFlag), 62 "NewFlagSet": reflect.ValueOf(q.NewFlagSet), 63 "Parse": reflect.ValueOf(q.Parse), 64 "Parsed": reflect.ValueOf(q.Parsed), 65 "PrintDefaults": reflect.ValueOf(q.PrintDefaults), 66 "Set": reflect.ValueOf(q.Set), 67 "String": reflect.ValueOf(q.String), 68 "StringVar": reflect.ValueOf(q.StringVar), 69 "Uint": reflect.ValueOf(q.Uint), 70 "Uint64": reflect.ValueOf(q.Uint64), 71 "Uint64Var": reflect.ValueOf(q.Uint64Var), 72 "UintVar": reflect.ValueOf(q.UintVar), 73 "UnquoteUsage": reflect.ValueOf(q.UnquoteUsage), 74 "Var": reflect.ValueOf(q.Var), 75 "Visit": reflect.ValueOf(q.Visit), 76 "VisitAll": reflect.ValueOf(q.VisitAll), 77 }, 78 TypedConsts: map[string]igop.TypedConst{ 79 "ContinueOnError": {reflect.TypeOf(q.ContinueOnError), constant.MakeInt64(int64(q.ContinueOnError))}, 80 "ExitOnError": {reflect.TypeOf(q.ExitOnError), constant.MakeInt64(int64(q.ExitOnError))}, 81 "PanicOnError": {reflect.TypeOf(q.PanicOnError), constant.MakeInt64(int64(q.PanicOnError))}, 82 }, 83 UntypedConsts: map[string]igop.UntypedConst{}, 84 }) 85 }