github.com/goplus/yap@v0.8.1/ytest/demo/match/complex/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 complex struct { 14 ytest.Case 15 *App 16 } 17 type App struct { 18 ytest.App 19 } 20 //line ytest/demo/match/complex/complex_yapt.gox:1 21 func (this *complex) Main() { 22 //line ytest/demo/match/complex/complex_yapt.gox:1:1 23 d := test.Gopx_Var_Cast__0[string]() 24 //line ytest/demo/match/complex/complex_yapt.gox:3:1 25 test.Gopt_Case_MatchAny(this, map[string]map[string]*test.Var__0[string]{"c": map[string]*test.Var__0[string]{"d": d}}, map[string]interface{}{"a": 1, "b": 3.14, "c": map[string]string{"d": "hello", "e": "world"}, "f": 1}) 26 //line ytest/demo/match/complex/complex_yapt.gox:12:1 27 fmt.Println(d) 28 //line ytest/demo/match/complex/complex_yapt.gox:13:1 29 test.Gopt_Case_MatchAny(this, d, "hello") 30 } 31 func (this *complex) Classfname() string { 32 return "complex" 33 } 34 func (this *App) Main() { 35 ytest.Gopt_App_Main(this, new(complex)) 36 } 37 func main() { 38 new(App).Main() 39 }