File: level_string.go

package info (click to toggle)
golang-github-microsoft-go-winio 0.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 764 kB
  • sloc: makefile: 3
file content (28 lines) | stat: -rw-r--r-- 730 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 -type=Level -trimprefix=Level"; DO NOT EDIT.

package etw

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[LevelAlways-0]
	_ = x[LevelCritical-1]
	_ = x[LevelError-2]
	_ = x[LevelWarning-3]
	_ = x[LevelInfo-4]
	_ = x[LevelVerbose-5]
}

const _Level_name = "AlwaysCriticalErrorWarningInfoVerbose"

var _Level_index = [...]uint8{0, 6, 14, 19, 26, 30, 37}

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