✨ Add Hash generator
This commit is contained in:
parent
dd531c1f73
commit
8888ee3855
5 changed files with 124 additions and 1 deletions
26
hashtype_string.go
Normal file
26
hashtype_string.go
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
// 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]]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue