aboutsummaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.go b/config.go
index e53a4a5..71b791f 100644
--- a/config.go
+++ b/config.go
@@ -37,6 +37,7 @@ import (
var config_with_pointers struct {
Url *string `scfg:"url"`
+ Prod *bool `scfg:"prod"`
Tmpl *string `scfg:"tmpl"`
Static *bool `scfg:"static"`
Listen struct {
@@ -57,6 +58,7 @@ var config_with_pointers struct {
var config struct {
Url string
+ Prod bool
Tmpl string
Static bool
Listen struct {
@@ -87,6 +89,7 @@ func fbfp_get_config(path string) {
* There should be better ways to handle this.
*/
config.Url = *(config_with_pointers.Url)
+ config.Prod = *(config_with_pointers.Prod)
config.Tmpl = *(config_with_pointers.Tmpl)
config.Static = *(config_with_pointers.Static)
config.Listen.Addr = *(config_with_pointers.Listen.Addr)