From 089522a2e5248693e867ab89fc0720aba08a9f40 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Wed, 26 Jun 2019 17:02:42 +0530 Subject: [PATCH] Replace config struct tags --- main.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index a8ce9d5..ce5c06d 100644 --- a/main.go +++ b/main.go @@ -25,13 +25,13 @@ import ( ) type constants struct { - RootURL string `mapstructure:"root"` - LogoURL string `mapstructure:"logo_url"` - FaviconURL string `mapstructure:"favicon_url"` - UploadPath string `mapstructure:"upload_path"` - UploadURI string `mapstructure:"upload_uri"` - FromEmail string `mapstructure:"from_email"` - NotifyEmails []string `mapstructure:"notify_emails"` + RootURL string `koanf:"root"` + LogoURL string `koanf:"logo_url"` + FaviconURL string `koanf:"favicon_url"` + UploadPath string `koanf:"upload_path"` + UploadURI string `koanf:"upload_uri"` + FromEmail string `koanf:"from_email"` + NotifyEmails []string `koanf:"notify_emails"` } // App contains the "global" components that are