github.com/goplus/yap@v0.8.1/demo/classfile2_statichttp/gop_autogen.go (about) 1 // Code generated by gop (Go+); DO NOT EDIT. 2 3 package main 4 5 import ( 6 "github.com/goplus/yap" 7 "github.com/qiniu/x/http/fs" 8 ) 9 10 const _ = true 11 12 type AppV2 struct { 13 yap.AppV2 14 } 15 //line demo/classfile2_statichttp/main.yap:3 16 func (this *AppV2) MainEntry() { 17 //line demo/classfile2_statichttp/main.yap:3:1 18 this.Static__2("/", fs.Http("https://goplus.org"), false) 19 //line demo/classfile2_statichttp/main.yap:4:1 20 this.Run(":8080") 21 } 22 func (this *AppV2) Main() { 23 yap.Gopt_AppV2_Main(this) 24 } 25 func main() { 26 new(AppV2).Main() 27 }