mirror of
https://github.com/packwiz/packwiz.git
synced 2025-11-19 01:24:32 +01:00
Continued work on download system (cache + cf meta now implemented)
This commit is contained in:
@@ -33,6 +33,14 @@ func GetHashImpl(hashType string) (HashStringer, error) {
|
||||
return nil, fmt.Errorf("hash implementation %s not found", hashType)
|
||||
}
|
||||
|
||||
var preferredHashList = []string{
|
||||
"murmur2",
|
||||
"md5",
|
||||
"sha1",
|
||||
"sha256",
|
||||
"sha512",
|
||||
}
|
||||
|
||||
type HashStringer interface {
|
||||
hash.Hash
|
||||
HashToString([]byte) string
|
||||
|
||||
Reference in New Issue
Block a user