github.com/paultyng/terraform@v0.6.11-0.20180227224804-66ff8f8bed40/configs/variabletypehint_string.go (about) 1 // Code generated by "stringer -type VariableTypeHint"; DO NOT EDIT. 2 3 package configs 4 5 import "strconv" 6 7 const ( 8 _VariableTypeHint_name_0 = "TypeHintNone" 9 _VariableTypeHint_name_1 = "TypeHintListTypeHintMap" 10 _VariableTypeHint_name_2 = "TypeHintString" 11 ) 12 13 var ( 14 _VariableTypeHint_index_1 = [...]uint8{0, 12, 23} 15 ) 16 17 func (i VariableTypeHint) String() string { 18 switch { 19 case i == 0: 20 return _VariableTypeHint_name_0 21 case 76 <= i && i <= 77: 22 i -= 76 23 return _VariableTypeHint_name_1[_VariableTypeHint_index_1[i]:_VariableTypeHint_index_1[i+1]] 24 case i == 83: 25 return _VariableTypeHint_name_2 26 default: 27 return "VariableTypeHint(" + strconv.FormatInt(int64(i), 10) + ")" 28 } 29 }