nomino/hashtype_string.go
2025-03-14 15:01:39 -05:00

26 lines
631 B
Go

// Code generated by "stringer -type=HashType"; 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[MD5-1]
_ = x[SHA1-2]
_ = x[SHA256-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]]
}