github.com/opentofu/opentofu@v1.7.1/internal/plans/quality_string.go (about) 1 // Code generated by "stringer -type Quality"; DO NOT EDIT. 2 3 package plans 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[Errored-0] 12 _ = x[NoChanges-1] 13 } 14 15 const _Quality_name = "ErroredNoChanges" 16 17 var _Quality_index = [...]uint8{0, 7, 16} 18 19 func (i Quality) String() string { 20 if i < 0 || i >= Quality(len(_Quality_index)-1) { 21 return "Quality(" + strconv.FormatInt(int64(i), 10) + ")" 22 } 23 return _Quality_name[_Quality_index[i]:_Quality_index[i+1]] 24 }