-
Notifications
You must be signed in to change notification settings - Fork 0
/
strings.go
44 lines (35 loc) · 1.2 KB
/
strings.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
43
44
// Code generated by "stringer -output=strings.go -type=Manufacturer,Memory -linecomment"; DO NOT EDIT.
package legacy
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[Egoman-0]
_ = x[SonyUK-1]
_ = x[Qisda-2]
_ = x[Embest-3]
}
const _Manufacturer_name = "EgomanSony UKQisdaEmbest"
var _Manufacturer_index = [...]uint8{0, 6, 13, 18, 24}
func (i Manufacturer) String() string {
if i >= Manufacturer(len(_Manufacturer_index)-1) {
return "Manufacturer(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Manufacturer_name[_Manufacturer_index[i]:_Manufacturer_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[M256-0]
_ = x[M512-1]
}
const _Memory_name = "256 MB512 MB"
var _Memory_index = [...]uint8{0, 6, 12}
func (i Memory) String() string {
if i >= Memory(len(_Memory_index)-1) {
return "Memory(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Memory_name[_Memory_index[i]:_Memory_index[i+1]]
}