nomino/hashtype_string.go

26 lines
660 B
Go

// Code generated by "stringer -type=HashType -trimprefix=Hash"; DO NOT EDIT.
package nomino
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[HashMD5-1]
_ = x[HashSHA1-2]
_ = x[HashSHA256-3]
}
const _HashType_name = "MD5SHA1SHA256"
var _HashType_index = [...]uint8{0, 3, 7, 13}
func (i HashType) String() string {
i -= 1
if i >= HashType(len(_HashType_index)-1) {
return "HashType(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _HashType_name[_HashType_index[i]:_HashType_index[i+1]]
}