hibiscus/internal/config/info.go

22 lines
395 B
Go
Raw Normal View History

2024-10-21 16:46:25 +03:00
package config
type AppInfo struct {
2024-10-23 11:26:35 +03:00
version string
source string
2024-10-21 16:46:25 +03:00
}
// Info contains app information.
var Info = AppInfo{
2024-10-23 11:26:35 +03:00
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
2024-10-21 16:46:25 +03:00
}