X-Git-Url: http://www.git.cypherpunks.ru/?p=gocheese.git;a=blobdiff_plain;f=gocheese.go;h=432fb6f76e1ca0f1468baa9fea2c97814fe4439a;hp=fa12d1826df911354147c04affae276fbcf19244;hb=3020e814c1e4e23baf281f4ff7a1121dd54f8fe3;hpb=7b3d8f3bfacd9112227b855be93d4f23a061c14e
diff --git a/gocheese.go b/gocheese.go
index fa12d18..432fb6f 100644
--- a/gocheese.go
+++ b/gocheese.go
@@ -69,15 +69,18 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see .`
)
+const (
+ HashAlgoSHA256 = "sha256"
+ HashAlgoBLAKE2b256 = "blake2_256"
+ HashAlgoSHA512 = "sha512"
+ HashAlgoMD5 = "md5"
+)
+
var (
pkgPyPI = regexp.MustCompile(`^.*]*>(.+)
.*$`)
normalizationRe = regexp.MustCompilePOSIX("[-_.]+")
- HashAlgoSHA256 = "sha256"
- HashAlgoBLAKE2b256 = "blake2_256"
- HashAlgoSHA512 = "sha512"
- HashAlgoMD5 = "md5"
- knownHashAlgos []string = []string{
+ knownHashAlgos []string = []string{
HashAlgoSHA256,
HashAlgoBLAKE2b256,
HashAlgoSHA512,
@@ -261,7 +264,7 @@ func main() {
return
}
if *version {
- fmt.Println("GoCheese version " + Version + " built with " + runtime.Version())
+ fmt.Println("GoCheese version", Version, "built with", runtime.Version())
return
}
if *fsck {