-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtimeunit_string.go
42 lines (37 loc) · 936 Bytes
/
timeunit_string.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Code generated by "stringer -type=TimeUnit"; DO NOT EDIT
package speed
import "fmt"
const (
_TimeUnit_name_0 = "NanosecondUnit"
_TimeUnit_name_1 = "MicrosecondUnit"
_TimeUnit_name_2 = "MillisecondUnit"
_TimeUnit_name_3 = "SecondUnit"
_TimeUnit_name_4 = "MinuteUnit"
_TimeUnit_name_5 = "HourUnit"
)
var (
_TimeUnit_index_0 = [...]uint8{0, 14}
_TimeUnit_index_1 = [...]uint8{0, 15}
_TimeUnit_index_2 = [...]uint8{0, 15}
_TimeUnit_index_3 = [...]uint8{0, 10}
_TimeUnit_index_4 = [...]uint8{0, 10}
_TimeUnit_index_5 = [...]uint8{0, 8}
)
func (i TimeUnit) String() string {
switch {
case i == 16777216:
return _TimeUnit_name_0
case i == 16781312:
return _TimeUnit_name_1
case i == 16785408:
return _TimeUnit_name_2
case i == 16789504:
return _TimeUnit_name_3
case i == 16793600:
return _TimeUnit_name_4
case i == 16797696:
return _TimeUnit_name_5
default:
return fmt.Sprintf("TimeUnit(%d)", i)
}
}