From 6140c5b7234b97d4a7b4bb26c87d316b3734f777 Mon Sep 17 00:00:00 2001 From: horus Date: Wed, 14 Feb 2018 22:52:22 +0100 Subject: Add shop short url. (crawler) --- crawler/config.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crawler/config.go') diff --git a/crawler/config.go b/crawler/config.go index 552d57a..b0964f8 100644 --- a/crawler/config.go +++ b/crawler/config.go @@ -23,12 +23,12 @@ type Config struct { // Parses the configuration and sets the configuration struct. func (c *Config) parseConfig(configFile string) { - viper.SetDefault("DBDriver", "mysql") - viper.SetDefault("DBDBName", "alkobote") - viper.SetDefault("DBHost", "localhost") - viper.SetDefault("DBPort", "3306") + viper.SetDefault("DB_Driver", "mysql") + viper.SetDefault("DB_DBName", "alkobote") + viper.SetDefault("DB_Host", "localhost") + viper.SetDefault("DB_Port", "3306") - viper.SetDefault("DBPath", "./alkobote.db") + viper.SetDefault("DB_Path", "./alkobote.db") viper.SetDefault("Debug", false) -- cgit v1.2.3