From d76f0d7e343cc29c42a2cc71f698944e7c553aba Mon Sep 17 00:00:00 2001 From: chopped pork Date: Wed, 17 Apr 2019 22:37:31 +0100 Subject: [PATCH] add config defaults --- cmd/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/config.go b/cmd/config.go index 5869d15..92d4ad5 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -8,7 +8,7 @@ import ( "github.com/spf13/viper" ) -var Config config +var Config = config{Host: "localhost", Port: 80} type config struct { Host string `mapstructure:"host"`