along with this program. If not, see <http://www.gnu.org/licenses/>.`
)
+const (
+ HashAlgoSHA256 = "sha256"
+ HashAlgoBLAKE2b256 = "blake2_256"
+ HashAlgoSHA512 = "sha512"
+ HashAlgoMD5 = "md5"
+)
+
var (
pkgPyPI = regexp.MustCompile(`^.*<a href="([^"]+)"[^>]*>(.+)</a><br/>.*$`)
normalizationRe = regexp.MustCompilePOSIX("[-_.]+")
- HashAlgoSHA256 = "sha256"
- HashAlgoBLAKE2b256 = "blake2_256"
- HashAlgoSHA512 = "sha512"
- HashAlgoMD5 = "md5"
- knownHashAlgos []string = []string{
+ knownHashAlgos []string = []string{
HashAlgoSHA256,
HashAlgoBLAKE2b256,
HashAlgoSHA512,
return
}
if *version {
- fmt.Println("GoCheese version " + Version + " built with " + runtime.Version())
+ fmt.Println("GoCheese version", Version, "built with", runtime.Version())
return
}
if *fsck {