]> Sergey Matveev's repositories - meta4ra.git/blobdiff - internal/common.go
Prepare for release
[meta4ra.git] / internal / common.go
index 04185743810b35eba4cd49ba850e318aada61232..fc016d665a17ba9a032db9a3ed4fecd0892f6170 100644 (file)
 // 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 <http://www.gnu.org/licenses/>.`
 )
+
+func Version() string {
+       return Generator + " built with " + runtime.Version()
+}