patrick 5 лет назад
Родитель
Сommit
43d95bbe23
3 измененных файлов: 13 добавлений и 1 удалений
  1. +4
    -0
      config.go
  2. +4
    -0
      config.json
  3. +5
    -1
      config.test.json

+ 4
- 0
config.go Просмотреть файл

@@ -26,6 +26,10 @@ type AppConfig struct {
Pass string `json:Pass`
Schema string `json:Schema`
} `json:DB`
Server struct {
Host string `json:Host`
Port string `json:Port`
} `json:Server`
}

var Config AppConfig

+ 4
- 0
config.json Просмотреть файл

@@ -16,5 +16,9 @@
"User": "sp",
"Pass": "sp",
"Schema": "leanwork_pay"
},
"Server": {
"Host":"localhost",
"Port":"8080"
}
}

+ 5
- 1
config.test.json Просмотреть файл

@@ -16,5 +16,9 @@
"User": "sp",
"Pass": "sp",
"Schema": "leanwork_pay"
}
},
"Server": {
"Host":"localhost",
"Port":"8080"
}
}

Загрузка…
Отмена
Сохранить