Skip to content
Myr

docs: fix route group example code (#4020)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by demouth · committed by GitHub · parent 28e57f5 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/doc.md+2 added-2 removed
337 unmodified lines
338func main() {339 router := gin.Default()340341 // Simple group: v1342 v1 := router.Group("/v1")342 {343 v1 := router.Group("/v1")344 v1.POST("/login", loginEndpoint)345 v1.POST("/submit", submitEndpoint)346 v1.POST("/read", readEndpoint)347 }348349 // Simple group: v2350 v2 := router.Group("/v2")350 {351 v2 := router.Group("/v2")352 v2.POST("/login", loginEndpoint)353 v2.POST("/submit", submitEndpoint)354 v2.POST("/read", readEndpoint)355 }
2032 unmodified lines