github.com/terraform-linters/tflint-plugin-sdk@v0.22.0/hclext/schemamode_string.go (about) 1 // Code generated by "stringer -type=SchemaMode"; DO NOT EDIT. 2 3 package hclext 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[SchemaDefaultMode-0] 12 _ = x[SchemaJustAttributesMode-1] 13 } 14 15 const _SchemaMode_name = "SchemaDefaultModeSchemaJustAttributesMode" 16 17 var _SchemaMode_index = [...]uint8{0, 17, 41} 18 19 func (i SchemaMode) String() string { 20 if i < 0 || i >= SchemaMode(len(_SchemaMode_index)-1) { 21 return "SchemaMode(" + strconv.FormatInt(int64(i), 10) + ")" 22 } 23 return _SchemaMode_name[_SchemaMode_index[i]:_SchemaMode_index[i+1]] 24 }