FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
gocheck/src/version.go at master · coderme/gocheck · GitHub
coderme
gocheck
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
gocheck
/
src
/
version.go
Copy path
More file actions
More file actions
Latest commit
History
History
History
40 lines (32 loc) · 1.05 KB
Breadcrumbs
gocheck
/
src
/
version.go
Copy path
File metadata and controls
40 lines (32 loc) · 1.05 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package
main
import
(
"fmt"
"time"
)
const
(
version
=
"0.5"
binName
=
`Gocheck`
)
// showLicense prints license then exit
func
showLicense
() {
license
:=
fmt
.
Sprintf
(
`
Copyright (c) %d CoderMe.com
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
`
,
time
.
Now
().
Year
(),
)
exit
(
0
,
binName
,
version
,
license
)
}
// showLicense prints version then exit
func
showVersion
() {
exit
(
0
,
binName
,
version
)
}
Back
|
FazBrowse Home
|
New Git URL