1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-11 14:10:39 +00:00

Add contect as first parameter for all config method

This commit is contained in:
Ming Deng
2020-08-29 15:05:18 +00:00
parent e831b97eb8
commit 03bec05714
19 changed files with 351 additions and 356 deletions

View File

@ -34,7 +34,7 @@ func getPort() string {
if err != nil {
return "8080"
}
port, err = config.String("httpport")
port, err = config.String(nil, "httpport")
if err != nil {
return "8080"
}