]>
Commit | Line | Data |
---|---|---|
bae9f6d2 JC |
1 | // Code generated by "stringer -type=ValueType valuetype.go"; DO NOT EDIT. |
2 | ||
3 | package schema | |
4 | ||
15c0b25d | 5 | import "strconv" |
bae9f6d2 | 6 | |
107c1cdb ND |
7 | func _() { |
8 | // An "invalid array index" compiler error signifies that the constant values have changed. | |
9 | // Re-run the stringer command to generate them again. | |
10 | var x [1]struct{} | |
11 | _ = x[TypeInvalid-0] | |
12 | _ = x[TypeBool-1] | |
13 | _ = x[TypeInt-2] | |
14 | _ = x[TypeFloat-3] | |
15 | _ = x[TypeString-4] | |
16 | _ = x[TypeList-5] | |
17 | _ = x[TypeMap-6] | |
18 | _ = x[TypeSet-7] | |
19 | _ = x[typeObject-8] | |
20 | } | |
21 | ||
bae9f6d2 JC |
22 | const _ValueType_name = "TypeInvalidTypeBoolTypeIntTypeFloatTypeStringTypeListTypeMapTypeSettypeObject" |
23 | ||
24 | var _ValueType_index = [...]uint8{0, 11, 19, 26, 35, 45, 53, 60, 67, 77} | |
25 | ||
26 | func (i ValueType) String() string { | |
27 | if i < 0 || i >= ValueType(len(_ValueType_index)-1) { | |
15c0b25d | 28 | return "ValueType(" + strconv.FormatInt(int64(i), 10) + ")" |
bae9f6d2 JC |
29 | } |
30 | return _ValueType_name[_ValueType_index[i]:_ValueType_index[i+1]] | |
31 | } |