From 8426708ecdf4f25656a04d7b182643b27c188157 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期六, 19 八月 2023 11:05:43 +0800
Subject: [PATCH] 增加测试数据

---
 conf/config.go |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/conf/config.go b/conf/config.go
index 5af1d43..c28317b 100644
--- a/conf/config.go
+++ b/conf/config.go
@@ -6,7 +6,6 @@
 	"apsClient/pkg/mysqlx"
 	"apsClient/pkg/redisx"
 	"apsClient/pkg/sqlitex"
-	"flag"
 	"github.com/spf13/viper"
 	"log"
 )
@@ -111,14 +110,6 @@
 )
 
 func init() {
-	var configFile string
-	flag.StringVar(&configFile, "config", "", "config file in json")
-	flag.Parse()
-
-	if len(configFile) > 0 {
-		configName = configFile
-	}
-
 	Viper = viper.New()
 	Viper.SetConfigName(configName)
 	for _, path := range configPaths {

--
Gitblit v1.8.0