260
|
1 |
// Code generated by "stringer -type timeFormatType"; DO NOT EDIT. |
|
2 |
|
|
3 |
package cast |
|
4 |
|
|
5 |
import "strconv" |
|
6 |
|
|
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[timeFormatNoTimezone-0] |
|
12 |
_ = x[timeFormatNamedTimezone-1] |
|
13 |
_ = x[timeFormatNumericTimezone-2] |
|
14 |
_ = x[timeFormatNumericAndNamedTimezone-3] |
|
15 |
_ = x[timeFormatTimeOnly-4] |
|
16 |
} |
|
17 |
|
|
18 |
const _timeFormatType_name = "timeFormatNoTimezonetimeFormatNamedTimezonetimeFormatNumericTimezonetimeFormatNumericAndNamedTimezonetimeFormatTimeOnly" |
|
19 |
|
|
20 |
var _timeFormatType_index = [...]uint8{0, 20, 43, 68, 101, 119} |
|
21 |
|
|
22 |
func (i timeFormatType) String() string { |
|
23 |
if i < 0 || i >= timeFormatType(len(_timeFormatType_index)-1) { |
|
24 |
return "timeFormatType(" + strconv.FormatInt(int64(i), 10) + ")" |
|
25 |
} |
|
26 |
return _timeFormatType_name[_timeFormatType_index[i]:_timeFormatType_index[i+1]] |
|
27 |
} |