File: string.go

package info (click to toggle)
golang-github-mdlayher-ethernet 0.0~git20190606.0394541-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 120 kB
  • sloc: makefile: 3
file content (38 lines) | stat: -rw-r--r-- 850 bytes parent folder | download | duplicates (2)
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)
	}
}