mirror of
https://github.com/hanzos3/madmin-go.git
synced 2026-10-30 20:35:32 +00:00
28 lines
793 B
Go
28 lines
793 B
Go
// Code generated by "stringer -type=checksumType -trimprefix=checksumType"; DO NOT EDIT.
|
|
|
|
package estream
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[checksumTypeNone-0]
|
|
_ = x[checksumTypeXxhash-1]
|
|
_ = x[checksumTypeXxhash3-2]
|
|
_ = x[checksumTypeUnknown-3]
|
|
}
|
|
|
|
const _checksumType_name = "NoneXxhashXxhash3Unknown"
|
|
|
|
var _checksumType_index = [...]uint8{0, 4, 10, 17, 24}
|
|
|
|
func (i checksumType) String() string {
|
|
idx := int(i) - 0
|
|
if i < 0 || idx >= len(_checksumType_index)-1 {
|
|
return "checksumType(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _checksumType_name[_checksumType_index[idx]:_checksumType_index[idx+1]]
|
|
}
|