From d0be48a53236bed4227d437c74cc2c893a6b944d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Tue, 30 Jan 2024 10:55:15 -0800 Subject: [PATCH] remove env-default from config because I was already handling defaults --- internal/config/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index 9239bc4..66c7e7f 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -28,9 +28,9 @@ var defaults = &AppConfig{ // ConfigDatabase contains data to be loaded from environmental variables type ConfigDatabase struct { - LogLevel string `env:"LOGLEVEL" env-default:"warn" env-description:"Logging level. Default: warn, Possible values: debug info warn error fatal none"` - Port uint16 `env:"PORT" env-default:"9001" env-description:"server port"` - UseCache bool `env:"CACHE" env-default:"true" env-description:"Use template cache"` + LogLevel string `env:"LOGLEVEL" env-description:"Logging level. Default: warn, Possible values: debug info warn error fatal none"` + Port uint16 `env:"PORT" env-description:"server port"` + UseCache bool `env:"CACHE" env-description:"Use template cache"` } // Initialises the app wide AppConfig, loads values from environment, and set up the Logger