create config

This commit is contained in:
2023-04-07 03:44:59 +08:00
parent d4262026d3
commit b20e864b37
2 changed files with 15 additions and 2 deletions

View File

@@ -25,7 +25,6 @@ func init() {
// 实现一个 web api 服务(获取指定尺寸的图片)
func main() {
runtime.GOMAXPROCS(runtime.NumCPU())
models.GetMysql() // 连接数据库
http.HandleFunc("/img/", func(w http.ResponseWriter, r *http.Request) {