Files
kalorienmanager/pkg/properties/root.go
T
2019-09-03 15:42:48 +02:00

40 lines
953 B
Go

package properties
var (
// Version defines the version of the web application kalorienmanager.
Version = "undefined"
// Debug defines the property debug to be used for more verbose output.
Debug = false
// Port defines port number under the web application is reachable.
Port = 8500
// Application defines the name of the web application
Application = ""
// TemplatePrefix defines the prefix for general templates
TemplatePrefix = ""
)
// SetVersion sets Version with given value.
func SetVersion(value string) {
Version = value
}
// SetDebug sets Debug with given value.
func SetDebug(value bool) {
Debug = value
}
// SetPort sets Port with given value.
func SetPort(value int) {
Port = value
}
// SetApplication sets Applivcation with given value.
func SetApplication(value string) {
Application = value
}
// SetTemplatePrefix sets TemplatePrefix with given value.
func SetTemplatePrefix(value string) {
TemplatePrefix = value
}