1[ 2 { 3 "name": "Bool", 4 "type": "bool", 5 "value": false, 6 "context_default": "false", 7 "parser": "strconv.ParseBool(f.Value.String())" 8 }, 9 { 10 "name": "BoolT", 11 "type": "bool", 12 "value": false, 13 "doctail": " that is true by default", 14 "context_default": "false", 15 "parser": "strconv.ParseBool(f.Value.String())" 16 }, 17 { 18 "name": "Duration", 19 "type": "time.Duration", 20 "doctail": " (see https://golang.org/pkg/time/#ParseDuration)", 21 "context_default": "0", 22 "parser": "time.ParseDuration(f.Value.String())" 23 }, 24 { 25 "name": "Float64", 26 "type": "float64", 27 "context_default": "0", 28 "parser": "strconv.ParseFloat(f.Value.String(), 64)" 29 }, 30 { 31 "name": "Generic", 32 "type": "Generic", 33 "dest": false, 34 "context_default": "nil", 35 "context_type": "interface{}" 36 }, 37 { 38 "name": "Int64", 39 "type": "int64", 40 "context_default": "0", 41 "parser": "strconv.ParseInt(f.Value.String(), 0, 64)" 42 }, 43 { 44 "name": "Int", 45 "type": "int", 46 "context_default": "0", 47 "parser": "strconv.ParseInt(f.Value.String(), 0, 64)", 48 "parser_cast": "int(parsed)" 49 }, 50 { 51 "name": "IntSlice", 52 "type": "*IntSlice", 53 "dest": false, 54 "context_default": "nil", 55 "context_type": "[]int", 56 "parser": "(f.Value.(*IntSlice)).Value(), error(nil)" 57 }, 58 { 59 "name": "Int64Slice", 60 "type": "*Int64Slice", 61 "dest": false, 62 "context_default": "nil", 63 "context_type": "[]int64", 64 "parser": "(f.Value.(*Int64Slice)).Value(), error(nil)" 65 }, 66 { 67 "name": "String", 68 "type": "string", 69 "context_default": "\"\"", 70 "parser": "f.Value.String(), error(nil)" 71 }, 72 { 73 "name": "StringSlice", 74 "type": "*StringSlice", 75 "dest": false, 76 "context_default": "nil", 77 "context_type": "[]string", 78 "parser": "(f.Value.(*StringSlice)).Value(), error(nil)" 79 }, 80 { 81 "name": "Uint64", 82 "type": "uint64", 83 "context_default": "0", 84 "parser": "strconv.ParseUint(f.Value.String(), 0, 64)" 85 }, 86 { 87 "name": "Uint", 88 "type": "uint", 89 "context_default": "0", 90 "parser": "strconv.ParseUint(f.Value.String(), 0, 64)", 91 "parser_cast": "uint(parsed)" 92 } 93] 94