摘要:
Gin 路由配置与参数解析详解 1. 路由定义方式 // 基础路由示例 router.GET("/welcome", func(c *gin.Context) { firstName := c.DefaultQuery("firstname", "Guest") c.String(http.Stat 阅读全文
posted @ 2025-07-28 23:36
Lucas_coming
阅读(22)
评论(0)
推荐(0)
摘要:
go-zero API语法与路由配置详解 1. API定义文件规范 // api/user.api syntax = "v1" type LoginReq { Username string `json:"username"` Password string `json:"password"` } 阅读全文
posted @ 2025-07-28 23:35
Lucas_coming
阅读(18)
评论(0)
推荐(0)
摘要:
Gin框架介绍 介绍 Gin 是一个用 Go (Golang) 编写的 Web 框架。 它具有类似 martini 的 API,性能要好得多,多亏了 httprouter,速度提高了 40 倍。 快速入门 安装gin go get -u github.com/gin-gonic/gin 引入gin 阅读全文
posted @ 2025-07-28 23:26
Lucas_coming
阅读(69)
评论(0)
推荐(0)

浙公网安备 33010602011771号