Beego
潘广宇
主攻Golang|Python|PHP|数据库|高并发架构|人工智能,Base广州,博客主要写一些工作上遇到的问题和处理经验
展开
-
配置 beego 环境变量 : -bash: bee: command not found
beego 环境变量需要配置在 ~/.bashrc ,而我在配置了 /etc/profile 不生效 配置在 /etc/profile 然后执行: go get github.com/astaxie/beego go get github.com/beego/bee 会报错:-bash: bee: command not found 正确方式,将环境变量配置在 ~/.bashrc: ...原创 2019-04-27 09:06:05 · 3900 阅读 · 2 评论 -
Beego 返回 json 数据
package controllers import ( "github.com/astaxie/beego" ) type CalculateController struct { beego.Controller } var JsonOutput = map[string]interface{}{ "code" : 0, "msg" : "", "data" : map[st...原创 2019-05-03 10:59:04 · 2898 阅读 · 0 评论