X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=gocheese.go;h=432fb6f76e1ca0f1468baa9fea2c97814fe4439a;hb=a315e774a1bee0b7fade8f38889f149b50cfe359;hp=70573b8f0085451ca716cb0b62e594697bb95481;hpb=d3f2ebfa80e9b514ed94a0f4fc76c6bef7e71006;p=gocheese.git
diff --git a/gocheese.go b/gocheese.go
index 70573b8..432fb6f 100644
--- a/gocheese.go
+++ b/gocheese.go
@@ -43,6 +43,7 @@ import (
)
const (
+ Version = "2.4.1"
HTMLBegin = `
@@ -68,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,
@@ -98,7 +102,6 @@ var (
version = flag.Bool("version", false, "Print version information")
warranty = flag.Bool("warranty", false, "Print warranty information")
- Version string = "UNKNOWN"
killed bool
pypiURLParsed *url.URL
)
@@ -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 {