Documentation
¶
Overview ¶
migrate-from-gin example — mechanical port of a gin-style API to zip.
gin before:
r := gin.Default()
r.GET("/users/:id", func(c *gin.Context) {
c.JSON(200, gin.H{"id": c.Param("id")})
})
zip after — Sinatra/Express idiom is preserved; gin.Context becomes *zip.Ctx; gin.H becomes any map-shaped value (or a typed struct).
Click to show internal directories.
Click to hide internal directories.