摘要:
Beego 框架学习笔记 03:Put、Delete 一、Put 修改 goods.go: package controllers import ( "github.com/astaxie/beego" ) type GoodsController struct { // 首字母要大写 beego. 阅读全文
posted @ 2020-12-16 22:12
Wonz
阅读(211)
评论(0)
推荐(0)
摘要:
一、Get article.go 里添加代码: package controllers import ( "fmt" "github.com/astaxie/beego" ) type ArticleController struct { // 首字母要大写 beego.Controller } f 阅读全文
posted @ 2020-12-16 22:00
Wonz
阅读(493)
评论(0)
推荐(0)
摘要:
一、安装、新建项目 首先需要安装 beego 环境,安装 bee 脚手架等。具体可以参考我的这篇文章:Go 安装教程。 然后在文件夹下新建一个 beego 项目: bee new beegodemo 然后,需要进入 beegodemo 文件夹下,如果没有 go mod 文件,需要 init 一下: 阅读全文
posted @ 2020-12-16 21:54
Wonz
阅读(303)
评论(0)
推荐(0)

浙公网安备 33010602011771号