migrate-from-gin

command
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 3 Imported by: 0

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL