Make Application name configurable

This commit is contained in:
Thomas Peetz
2019-09-03 15:42:48 +02:00
parent b7cbe08d7b
commit 276e65b153
15 changed files with 359 additions and 12 deletions
+15 -1
View File
@@ -1,12 +1,16 @@
package properties
var (
// Version defines the version of the web application kontor.
// 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.
@@ -23,3 +27,13 @@ func SetDebug(value bool) {
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
}