github.com/minio/madmin-go/v3@v3.0.51/estream/checksumtype_string.go (about) 1 // Code generated by "stringer -type=checksumType -trimprefix=checksumType"; DO NOT EDIT. 2 3 package estream 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[checksumTypeNone-0] 12 _ = x[checksumTypeXxhash-1] 13 _ = x[checksumTypeUnknown-2] 14 } 15 16 const _checksumType_name = "NoneXxhashUnknown" 17 18 var _checksumType_index = [...]uint8{0, 4, 10, 17} 19 20 func (i checksumType) String() string { 21 if i >= checksumType(len(_checksumType_index)-1) { 22 return "checksumType(" + strconv.FormatInt(int64(i), 10) + ")" 23 } 24 return _checksumType_name[_checksumType_index[i]:_checksumType_index[i+1]] 25 }