Improve logging
This commit is contained in:
parent
57903d4724
commit
ca9b6e05b7
10 changed files with 49 additions and 21 deletions
|
@ -1,12 +1,22 @@
|
|||
package config
|
||||
|
||||
type AppInfo struct {
|
||||
Version string
|
||||
SourceLink string
|
||||
version string
|
||||
source string
|
||||
}
|
||||
|
||||
// Info contains app information.
|
||||
var Info = AppInfo{
|
||||
Version: "2.0.0",
|
||||
SourceLink: "https://git.a71.su/Andrew71/hibiscus",
|
||||
version: "2.0.0",
|
||||
source: "https://git.a71.su/Andrew71/hibiscus",
|
||||
}
|
||||
|
||||
// Version returns the current app version
|
||||
func (i AppInfo) Version() string {
|
||||
return i.version
|
||||
}
|
||||
|
||||
// Source returns app's git repository
|
||||
func (i AppInfo) Source() string {
|
||||
return i.source
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue