github.com/goplus/yap@v0.8.1/ytest/demo/basic/gop_autogen.go (about) 1 // Code generated by gop (Go+); DO NOT EDIT. 2 3 package main 4 5 import "github.com/goplus/yap" 6 7 const _ = true 8 9 type foo struct { 10 yap.App 11 } 12 //line ytest/demo/basic/foo.gox:7 13 func (this *foo) Main() { 14 //line ytest/demo/basic/foo.gox:7:1 15 this.InitYap() 16 //line ytest/demo/basic/foo.gox:9:1 17 this.Get("/p/:id", func(ctx *yap.Context) { 18 //line ytest/demo/basic/foo.gox:10:1 19 ctx.Json__1(map[string]string{"id": ctx.Param("id")}) 20 }) 21 } 22 func main() { 23 }