X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=internal%2Fcommon.go;fp=internal%2Fcommon.go;h=fc016d665a17ba9a032db9a3ed4fecd0892f6170;hb=93f0c7dfccc4277d61113115c7eb1aa7cb048413;hp=04185743810b35eba4cd49ba850e318aada61232;hpb=be69a4fc0c240c2772a0f0bf0955b39783e4c48a;p=meta4ra.git diff --git a/internal/common.go b/internal/common.go index 0418574..fc016d6 100644 --- a/internal/common.go +++ b/internal/common.go @@ -16,9 +16,31 @@ // Metalink 4.0 utilities package internal +import ( + "runtime" +) + const ( Generator = "meta4ra/0.7.0" SigMediaTypePGP = "application/pgp-signature" SigMediaTypeSSH = "application/ssh-signature" BufLen = 1 << 20 + + Warranty = `Copyright (C) 2021-2024 Sergey Matveev + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see .` ) + +func Version() string { + return Generator + " built with " + runtime.Version() +}