File: runmode_string.go

package info (click to toggle)
golang-github-cue-lang-cue 0.12.0.-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,072 kB
  • sloc: sh: 57; makefile: 17
file content (27 lines) | stat: -rw-r--r-- 668 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
// Code generated by "stringer -type=runMode"; DO NOT EDIT.

package adt

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[ignore-1]
	_ = x[attemptOnly-2]
	_ = x[yield-3]
	_ = x[finalize-4]
}

const _runMode_name = "ignoreattemptOnlyyieldfinalize"

var _runMode_index = [...]uint8{0, 6, 17, 22, 30}

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