File: string.go

package info (click to toggle)
golang-github-mdlayher-ndp 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 244 kB
  • sloc: makefile: 3
file content (26 lines) | stat: -rw-r--r-- 703 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
// Code generated by "stringer -type=Preference -output=string.go"; DO NOT EDIT.

package ndp

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[Medium-0]
	_ = x[High-1]
	_ = x[prfReserved-2]
	_ = x[Low-3]
}

const _Preference_name = "MediumHighprfReservedLow"

var _Preference_index = [...]uint8{0, 6, 10, 21, 24}

func (i Preference) String() string {
	if i < 0 || i >= Preference(len(_Preference_index)-1) {
		return "Preference(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _Preference_name[_Preference_index[i]:_Preference_index[i+1]]
}