Browse Source

修改读取配置文件路径

tangs 6 years ago
parent
commit
7b115cf1da
2 changed files with 3 additions and 1 deletions
  1. 2 0
      .gitignore
  2. 1 1
      src/main.go

+ 2 - 0
.gitignore

@@ -0,0 +1,2 @@
+.idea/*
+*.iml

+ 1 - 1
src/main.go

@@ -14,7 +14,7 @@ func main() {
 	defer func() {
 		time.Sleep(5*time.Second)
 	}()
-	var conf string = "config.json"
+	var conf string = "/home/tangs/web/fileUpload/config.json"
 	var err error
 
 	configBys, err := ioutil.ReadFile(conf)