github.com/urso/go-structform@v0.0.2/basetype_string.go (about) 1 // Code generated by "stringer -type=BaseType"; DO NOT EDIT 2 3 package structform 4 5 import "fmt" 6 7 const _BaseType_name = "AnyTypeByteTypeStringTypeBoolTypeZeroTypeIntTypeInt8TypeInt16TypeInt32TypeInt64TypeUintTypeUint8TypeUint16TypeUint32TypeUint64TypeFloat32TypeFloat64Type" 8 9 var _BaseType_index = [...]uint8{0, 7, 15, 25, 33, 41, 48, 56, 65, 74, 83, 91, 100, 110, 120, 130, 141, 152} 10 11 func (i BaseType) String() string { 12 if i >= BaseType(len(_BaseType_index)-1) { 13 return fmt.Sprintf("BaseType(%d)", i) 14 } 15 return _BaseType_name[_BaseType_index[i]:_BaseType_index[i+1]] 16 }