github.com/philpearl/plenc@v0.0.15/plenccodec/fieldtype_string.go (about) 1 // Code generated by "stringer -type FieldType"; DO NOT EDIT. 2 3 package plenccodec 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[FieldTypeInt-0] 12 _ = x[FieldTypeUint-1] 13 _ = x[FieldTypeFloat32-2] 14 _ = x[FieldTypeFloat64-3] 15 _ = x[FieldTypeString-4] 16 _ = x[FieldTypeSlice-5] 17 _ = x[FieldTypeStruct-6] 18 _ = x[FieldTypeBool-7] 19 _ = x[FieldTypeTime-8] 20 } 21 22 const _FieldType_name = "FieldTypeIntFieldTypeUintFieldTypeFloat32FieldTypeFloat64FieldTypeStringFieldTypeSliceFieldTypeStructFieldTypeBoolFieldTypeTime" 23 24 var _FieldType_index = [...]uint8{0, 12, 25, 41, 57, 72, 86, 101, 114, 127} 25 26 func (i FieldType) String() string { 27 if i < 0 || i >= FieldType(len(_FieldType_index)-1) { 28 return "FieldType(" + strconv.FormatInt(int64(i), 10) + ")" 29 } 30 return _FieldType_name[_FieldType_index[i]:_FieldType_index[i+1]] 31 }