github.com/goplus/yap@v0.8.1/demo/classfile2_hello/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 struct {
    10  	yap.Handler
    11  	*AppV2
    12  }
    13  type get_p_id struct {
    14  	yap.Handler
    15  	*AppV2
    16  }
    17  type AppV2 struct {
    18  	yap.AppV2
    19  }
    20  //line demo/classfile2_hello/get.yap:1
    21  func (this *get) Main(_gop_arg0 *yap.Context) {
    22  	this.Handler.Main(_gop_arg0)
    23  //line demo/classfile2_hello/get.yap:1:1
    24  	this.Html__1(`<html><body>Hello, YAP!</body></html>`)
    25  }
    26  func (this *get) Classfname() string {
    27  	return "get"
    28  }
    29  //line demo/classfile2_hello/get_p_#id.yap:1
    30  func (this *get_p_id) Main(_gop_arg0 *yap.Context) {
    31  	this.Handler.Main(_gop_arg0)
    32  //line demo/classfile2_hello/get_p_#id.yap:1:1
    33  	this.Json__1(map[string]string{"id": this.Gop_Env("id")})
    34  }
    35  func (this *get_p_id) Classfname() string {
    36  	return "get_p_#id"
    37  }
    38  func (this *AppV2) Main() {
    39  	yap.Gopt_AppV2_Main(this, new(get), new(get_p_id))
    40  }
    41  func main() {
    42  	new(AppV2).Main()
    43  }