func myHandler(ctx *macaron.Context) { id := ctx.Params(":id") // id is the value of the "id" parameter in the URL }
func myHandler(ctx *macaron.Context) { ctx.SetParam("name", "John") // the "name" parameter is now set to "John" }The package library in this example is `github.com/unknwon/macaron`, which provides a high-level web framework for building Go web applications.