Improve logging

This commit is contained in:
Andrew-71 2024-10-23 11:26:35 +03:00
parent 57903d4724
commit ca9b6e05b7
10 changed files with 49 additions and 21 deletions

View file

@ -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
}