File: devicestate_string.go

package info (click to toggle)
wireguard-go 0.0.20231211-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 820 kB
  • sloc: sh: 300; makefile: 28
file content (16 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by "stringer -type deviceState -trimprefix=deviceState"; DO NOT EDIT.

package device

import "strconv"

const _deviceState_name = "DownUpClosed"

var _deviceState_index = [...]uint8{0, 4, 6, 12}

func (i deviceState) String() string {
	if i >= deviceState(len(_deviceState_index)-1) {
		return "deviceState(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _deviceState_name[_deviceState_index[i]:_deviceState_index[i+1]]
}