github.com/goplus/yap@v0.8.1/ytest/demo/match/simple/gop_autogen.go (about) 1 // Code generated by gop (Go+); DO NOT EDIT. 2 3 package main 4 5 import ( 6 "fmt" 7 "github.com/goplus/yap/test" 8 "github.com/goplus/yap/ytest" 9 ) 10 11 const _ = true 12 13 type simple struct { 14 ytest.Case 15 *App 16 } 17 type App struct { 18 ytest.App 19 } 20 //line ytest/demo/match/simple/simple_yapt.gox:1 21 func (this *simple) Main() { 22 //line ytest/demo/match/simple/simple_yapt.gox:1:1 23 id := test.Gopx_Var_Cast__0[int]() 24 //line ytest/demo/match/simple/simple_yapt.gox:2:1 25 test.Gopt_Case_MatchAny(this, id, 1+2) 26 //line ytest/demo/match/simple/simple_yapt.gox:3:1 27 test.Gopt_Case_MatchAny(this, id, 3) 28 //line ytest/demo/match/simple/simple_yapt.gox:4:1 29 fmt.Println(id) 30 //line ytest/demo/match/simple/simple_yapt.gox:6:1 31 test.Gopt_Case_MatchAny(this, id, 5) 32 } 33 func (this *simple) Classfname() string { 34 return "simple" 35 } 36 func (this *App) Main() { 37 ytest.Gopt_App_Main(this, new(simple)) 38 } 39 func main() { 40 new(App).Main() 41 }