X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=gocheese.go;h=432fb6f76e1ca0f1468baa9fea2c97814fe4439a;hb=a315e774a1bee0b7fade8f38889f149b50cfe359;hp=fa12d1826df911354147c04affae276fbcf19244;hpb=232408af2996be5a87350e81c151508ca55cd171;p=gocheese.git 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 {