- 博客(3)
- 收藏
- 关注
原创 Gin框架入门(三)—多路由分组
官方文档:https://godoc.org/github.com/gin-gonic/gin官方地址:https://github.com/gin-gonic/gin多路由分组在平常我们经常会划分一个模块一组路由。例如:goods为商品模块www.haha.com/goods/addGoods 添加商品www.haha.com/goods/delGoods 删除商品这时我们把一...
2019-01-25 17:11:52 12732 4
原创 Gin框架入门(二)—文件上传
官方文档:https://godoc.org/github.com/gin-gonic/gin官方地址:https://github.com/gin-gonic/gin测试工具:postman https://www.getpostman.com/downloads/1.单文件上传func main() { router := gin.Default() router.POST("/u...
2019-01-25 16:27:08 10691 2
原创 Gin框架入门(一)—HTTP请求
官方文档:https://godoc.org/github.com/gin-gonic/gin官方地址:https://github.com/gin-gonic/gin1.开始安装先配置好GOROOT和GOPATH输入命令:go get github.com/gin-gonic/gin2.简单示例//导入包 import ( "github.com/gin-gonic/gin&a
2019-01-25 14:38:26 10569 4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人