File: string.go

package info (click to toggle)
golang-github-mdlayher-dhcp6 0.0~git20190311.2a67805-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 400 kB
  • sloc: makefile: 3
file content (28 lines) | stat: -rw-r--r-- 908 bytes parent folder | download
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
// Code generated by "stringer -output=string.go -type=ArchType,DUIDType"; DO NOT EDIT.

package dhcp6opts

import "fmt"

const _ArchType_name = "ArchTypeIntelx86PCArchTypeNECPC98ArchTypeEFIItaniumArchTypeDECAlphaArchtypeArcx86ArchTypeIntelLeanClientArchTypeEFIIA32ArchTypeEFIBCArchTypeEFIXscaleArchTypeEFIx8664"

var _ArchType_index = [...]uint8{0, 18, 33, 51, 67, 81, 104, 119, 132, 149, 165}

func (i ArchType) String() string {
	if i >= ArchType(len(_ArchType_index)-1) {
		return fmt.Sprintf("ArchType(%d)", i)
	}
	return _ArchType_name[_ArchType_index[i]:_ArchType_index[i+1]]
}

const _DUIDType_name = "DUIDTypeLLTDUIDTypeENDUIDTypeLLDUIDTypeUUID"

var _DUIDType_index = [...]uint8{0, 11, 21, 31, 43}

func (i DUIDType) String() string {
	i -= 1
	if i >= DUIDType(len(_DUIDType_index)-1) {
		return fmt.Sprintf("DUIDType(%d)", i+1)
	}
	return _DUIDType_name[_DUIDType_index[i]:_DUIDType_index[i+1]]
}