github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/resource_mode_string.go (about) 1 // Code generated by "stringer -type=ResourceMode -output=resource_mode_string.go resource_mode.go"; DO NOT EDIT. 2 3 package terraform 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[ManagedResourceMode-0] 12 _ = x[DataResourceMode-1] 13 } 14 15 const _ResourceMode_name = "ManagedResourceModeDataResourceMode" 16 17 var _ResourceMode_index = [...]uint8{0, 19, 35} 18 19 func (i ResourceMode) String() string { 20 if i < 0 || i >= ResourceMode(len(_ResourceMode_index)-1) { 21 return "ResourceMode(" + strconv.FormatInt(int64(i), 10) + ")" 22 } 23 return _ResourceMode_name[_ResourceMode_index[i]:_ResourceMode_index[i+1]] 24 }