]> Sergey Matveev's repositories - meta4ra.git/blob - internal/common.go
Prepare for release
[meta4ra.git] / internal / common.go
1 // meta4ra -- Metalink 4.0 utilities
2 // Copyright (C) 2021-2024 Sergey Matveev <stargrave@stargrave.org>
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, version 3 of the License.
7 //
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 // GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
16 // Metalink 4.0 utilities
17 package internal
18
19 import (
20         "runtime"
21 )
22
23 const (
24         Generator       = "meta4ra/0.7.0"
25         SigMediaTypePGP = "application/pgp-signature"
26         SigMediaTypeSSH = "application/ssh-signature"
27         BufLen          = 1 << 20
28
29         Warranty = `Copyright (C) 2021-2024 Sergey Matveev
30
31 This program is free software: you can redistribute it and/or modify
32 it under the terms of the GNU General Public License as published by
33 the Free Software Foundation, version 3 of the License.
34
35 This program is distributed in the hope that it will be useful,
36 but WITHOUT ANY WARRANTY; without even the implied warranty of
37 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
38 GNU General Public License for more details.
39
40 You should have received a copy of the GNU General Public License
41 along with this program.  If not, see <http://www.gnu.org/licenses/>.`
42 )
43
44 func Version() string {
45         return Generator + " built with " + runtime.Version()
46 }