File: loadrestrictions_string.go

package info (click to toggle)
golang-k8s-sigs-kustomize-api 0.19.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,732 kB
  • sloc: makefile: 206; sh: 67
file content (25 lines) | stat: -rw-r--r-- 819 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
// Code generated by "stringer -type=LoadRestrictions"; DO NOT EDIT.

package types

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[LoadRestrictionsUnknown-0]
	_ = x[LoadRestrictionsRootOnly-1]
	_ = x[LoadRestrictionsNone-2]
}

const _LoadRestrictions_name = "LoadRestrictionsUnknownLoadRestrictionsRootOnlyLoadRestrictionsNone"

var _LoadRestrictions_index = [...]uint8{0, 23, 47, 67}

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