From 0b8c1ce50f96f80f9abc09c29f087fffd1ecab6f Mon Sep 17 00:00:00 2001 From: xushiwei Date: Mon, 22 Jan 2024 12:45:27 +0800 Subject: [PATCH] autogen mark --- demo/classfile_blog/gop_autogen.go | 3 +++ demo/classfile_hello/gop_autogen.go | 3 +++ demo/classfile_static/gop_autogen.go | 3 +++ demo/classfile_statichttp/gop_autogen.go | 3 +++ 4 files changed, 12 insertions(+) diff --git a/demo/classfile_blog/gop_autogen.go b/demo/classfile_blog/gop_autogen.go index ae92e94..5a40696 100644 --- a/demo/classfile_blog/gop_autogen.go +++ b/demo/classfile_blog/gop_autogen.go @@ -2,6 +2,8 @@ package main import "github.com/goplus/yap" +const _ = true + type blog struct { yap.App } @@ -16,5 +18,6 @@ func (this *blog) MainEntry() { this.Run(":8080") } func main() { +//line demo/classfile_blog/blog_yap.gox:7:1 yap.Gopt_App_Main(new(blog)) } diff --git a/demo/classfile_hello/gop_autogen.go b/demo/classfile_hello/gop_autogen.go index 26c0523..3ab06df 100644 --- a/demo/classfile_hello/gop_autogen.go +++ b/demo/classfile_hello/gop_autogen.go @@ -2,6 +2,8 @@ package main import "github.com/goplus/yap" +const _ = true + type hello struct { yap.App } @@ -21,5 +23,6 @@ func (this *hello) MainEntry() { this.Run(":8080") } func main() { +//line demo/classfile_hello/hello_yap.gox:10:1 yap.Gopt_App_Main(new(hello)) } diff --git a/demo/classfile_static/gop_autogen.go b/demo/classfile_static/gop_autogen.go index 793fbf9..9208ddd 100644 --- a/demo/classfile_static/gop_autogen.go +++ b/demo/classfile_static/gop_autogen.go @@ -2,6 +2,8 @@ package main import "github.com/goplus/yap" +const _ = true + type staticfile struct { yap.App } @@ -15,5 +17,6 @@ func (this *staticfile) MainEntry() { this.Run(":8888") } func main() { +//line demo/classfile_static/staticfile_yap.gox:4:1 yap.Gopt_App_Main(new(staticfile)) } diff --git a/demo/classfile_statichttp/gop_autogen.go b/demo/classfile_statichttp/gop_autogen.go index 25ca5b6..5613e96 100644 --- a/demo/classfile_statichttp/gop_autogen.go +++ b/demo/classfile_statichttp/gop_autogen.go @@ -5,6 +5,8 @@ import ( "github.com/qiniu/x/http/fs" ) +const _ = true + type statichttp struct { yap.App } @@ -16,5 +18,6 @@ func (this *statichttp) MainEntry() { this.Run(":8888") } func main() { +//line demo/classfile_statichttp/statichttp_yap.gox:4:1 yap.Gopt_App_Main(new(statichttp)) }