2017-10-03 01:07:39 +02:00
|
|
|
// Code generated by "stringer -type=NestingMode"; DO NOT EDIT.
|
|
|
|
|
|
|
|
package configschema
|
|
|
|
|
2017-12-11 22:26:29 +01:00
|
|
|
import "strconv"
|
2017-10-03 01:07:39 +02:00
|
|
|
|
2019-04-09 00:32:53 +02:00
|
|
|
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[nestingModeInvalid-0]
|
|
|
|
_ = x[NestingSingle-1]
|
|
|
|
_ = x[NestingGroup-2]
|
|
|
|
_ = x[NestingList-3]
|
|
|
|
_ = x[NestingSet-4]
|
|
|
|
_ = x[NestingMap-5]
|
|
|
|
}
|
|
|
|
|
|
|
|
const _NestingMode_name = "nestingModeInvalidNestingSingleNestingGroupNestingListNestingSetNestingMap"
|
2017-10-03 01:07:39 +02:00
|
|
|
|
2019-04-09 00:32:53 +02:00
|
|
|
var _NestingMode_index = [...]uint8{0, 18, 31, 43, 54, 64, 74}
|
2017-10-03 01:07:39 +02:00
|
|
|
|
|
|
|
func (i NestingMode) String() string {
|
|
|
|
if i < 0 || i >= NestingMode(len(_NestingMode_index)-1) {
|
2017-12-11 22:26:29 +01:00
|
|
|
return "NestingMode(" + strconv.FormatInt(int64(i), 10) + ")"
|
2017-10-03 01:07:39 +02:00
|
|
|
}
|
|
|
|
return _NestingMode_name[_NestingMode_index[i]:_NestingMode_index[i+1]]
|
|
|
|
}
|