]> Cypherpunks.ru repositories - nncp.git/blob - src/cypherpunks.ru/nncp/nncp.go
32f2eb6c3ed072edd498cd2a3450fbd4072f9c8b
[nncp.git] / src / cypherpunks.ru / nncp / nncp.go
1 /*
2 NNCP -- Node to Node copy, utilities for store-and-forward data exchange
3 Copyright (C) 2016-2019 Sergey Matveev <stargrave@stargrave.org>
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 // NNCP -- Node to Node copy
20 package nncp
21
22 import (
23         "runtime"
24 )
25
26 const (
27         Warranty = `This program is free software: you can redistribute it and/or modify
28 it under the terms of the GNU General Public License as published by
29 the Free Software Foundation, either version 3 of the License, or
30 (at your option) any later version.
31
32 This program is distributed in the hope that it will be useful,
33 but WITHOUT ANY WARRANTY; without even the implied warranty of
34 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35 GNU General Public License for more details.
36
37 You should have received a copy of the GNU General Public License
38 along with this program.  If not, see <http://www.gnu.org/licenses/>.`
39 )
40
41 var (
42         Version string
43 )
44
45 func VersionGet() string {
46         return "NNCP version " + Version + " built with " + runtime.Version()
47 }
48
49 func UsageHeader() string {
50         return VersionGet() + `
51 Copyright (C) 2016-2019 Sergey Matveev
52 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
53 This is free software: you are free to change and redistribute it.
54 There is NO WARRANTY, to the extent permitted by law.
55
56 `
57 }