diff --git a/demo/classfile_blog/gop_autogen.go b/demo/classfile_blog/gop_autogen.go index 2f3641d..ae92e94 100644 --- a/demo/classfile_blog/gop_autogen.go +++ b/demo/classfile_blog/gop_autogen.go @@ -5,15 +5,15 @@ import "github.com/goplus/yap" type blog struct { yap.App } -//line classfile_blog/blog_yap.gox:1 +//line demo/classfile_blog/blog_yap.gox:1 func (this *blog) MainEntry() { -//line classfile_blog/blog_yap.gox:1:1 +//line demo/classfile_blog/blog_yap.gox:1:1 this.Get("/p/:id", func(ctx *yap.Context) { -//line classfile_blog/blog_yap.gox:2:1 +//line demo/classfile_blog/blog_yap.gox:2:1 ctx.Yap__1("article", map[string]string{"id": ctx.Param("id")}) }) -//line classfile_blog/blog_yap.gox:7:1 - this.Run__1(":8080") +//line demo/classfile_blog/blog_yap.gox:7:1 + this.Run(":8080") } func main() { yap.Gopt_App_Main(new(blog)) diff --git a/demo/classfile_hello/gop_autogen.go b/demo/classfile_hello/gop_autogen.go index 54e6ff0..26c0523 100644 --- a/demo/classfile_hello/gop_autogen.go +++ b/demo/classfile_hello/gop_autogen.go @@ -5,20 +5,20 @@ import "github.com/goplus/yap" type hello struct { yap.App } -//line classfile_hello/hello_yap.gox:1 +//line demo/classfile_hello/hello_yap.gox:1 func (this *hello) MainEntry() { -//line classfile_hello/hello_yap.gox:1:1 +//line demo/classfile_hello/hello_yap.gox:1:1 this.Get("/p/:id", func(ctx *yap.Context) { -//line classfile_hello/hello_yap.gox:2:1 +//line demo/classfile_hello/hello_yap.gox:2:1 ctx.Json__1(map[string]string{"id": ctx.Param("id")}) }) -//line classfile_hello/hello_yap.gox:6:1 +//line demo/classfile_hello/hello_yap.gox:6:1 this.Handle("/", func(ctx *yap.Context) { -//line classfile_hello/hello_yap.gox:7:1 +//line demo/classfile_hello/hello_yap.gox:7:1 ctx.Html__1(`Hello, Yap!`) }) -//line classfile_hello/hello_yap.gox:10:1 - this.Run__1(":8080") +//line demo/classfile_hello/hello_yap.gox:10:1 + this.Run(":8080") } func main() { yap.Gopt_App_Main(new(hello))