github.com/goplus/yap@v0.8.1/ytest/demo/foo/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 get_p_id struct { 10 yap.Handler 11 *AppV2 12 } 13 type AppV2 struct { 14 yap.AppV2 15 } 16 //line ytest/demo/foo/get_p_#id.yap:1 17 func (this *get_p_id) Main(_gop_arg0 *yap.Context) { 18 this.Handler.Main(_gop_arg0) 19 //line ytest/demo/foo/get_p_#id.yap:1:1 20 this.Json__1(map[string]string{"id": this.Gop_Env("id")}) 21 } 22 func (this *get_p_id) Classfname() string { 23 return "get_p_#id" 24 } 25 func (this *AppV2) Main() { 26 yap.Gopt_AppV2_Main(this, new(get_p_id)) 27 } 28 func main() { 29 new(AppV2).Main() 30 }