github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/backend/local/counthookaction_string.go (about) 1 // Code generated by "stringer -type=countHookAction hook_count_action.go"; DO NOT EDIT. 2 3 package local 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[countHookActionAdd-0] 12 _ = x[countHookActionChange-1] 13 _ = x[countHookActionRemove-2] 14 } 15 16 const _countHookAction_name = "countHookActionAddcountHookActionChangecountHookActionRemove" 17 18 var _countHookAction_index = [...]uint8{0, 18, 39, 60} 19 20 func (i countHookAction) String() string { 21 if i >= countHookAction(len(_countHookAction_index)-1) { 22 return "countHookAction(" + strconv.FormatInt(int64(i), 10) + ")" 23 } 24 return _countHookAction_name[_countHookAction_index[i]:_countHookAction_index[i+1]] 25 }