不知道是不是坑
官方文档 https://beego.me/docs/module/config.md
。
解决办法:
1 导入
config "github.com/astaxie/beego/config
beego 读取配置
原文:https://www.cnblogs.com/songhuan999999/p/11216028.html