-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathstring.go
38 lines (33 loc) · 850 Bytes
/
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
// Code generated by "stringer -output=string.go -type=EtherType"; DO NOT EDIT.
package ethernet
import "fmt"
const (
_EtherType_name_0 = "EtherTypeIPv4"
_EtherType_name_1 = "EtherTypeARP"
_EtherType_name_2 = "EtherTypeVLAN"
_EtherType_name_3 = "EtherTypeIPv6"
_EtherType_name_4 = "EtherTypeServiceVLAN"
)
var (
_EtherType_index_0 = [...]uint8{0, 13}
_EtherType_index_1 = [...]uint8{0, 12}
_EtherType_index_2 = [...]uint8{0, 13}
_EtherType_index_3 = [...]uint8{0, 13}
_EtherType_index_4 = [...]uint8{0, 20}
)
func (i EtherType) String() string {
switch {
case i == 2048:
return _EtherType_name_0
case i == 2054:
return _EtherType_name_1
case i == 33024:
return _EtherType_name_2
case i == 34525:
return _EtherType_name_3
case i == 34984:
return _EtherType_name_4
default:
return fmt.Sprintf("EtherType(%d)", i)
}
}