From 113676a4783b7e7ba3ae724df666df3f78cf7f8a Mon Sep 17 00:00:00 2001 From: demouth Date: Tue, 30 Jul 2024 23:28:37 +0900 Subject: [PATCH] docs: fix route group example code --- docs/doc.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/doc.md b/docs/doc.md index 5136640929..3a62788137 100644 --- a/docs/doc.md +++ b/docs/doc.md @@ -338,16 +338,16 @@ func main() { router := gin.Default() // Simple group: v1 - v1 := router.Group("/v1") { + v1 := router.Group("/v1") v1.POST("/login", loginEndpoint) v1.POST("/submit", submitEndpoint) v1.POST("/read", readEndpoint) } // Simple group: v2 - v2 := router.Group("/v2") { + v2 := router.Group("/v2") v2.POST("/login", loginEndpoint) v2.POST("/submit", submitEndpoint) v2.POST("/read", readEndpoint)