forked from goplus/yap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgop_autogen.go
39 lines (35 loc) · 1012 Bytes
/
gop_autogen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Code generated by gop (Go+); DO NOT EDIT.
package main
import (
"fmt"
"github.com/goplus/yap/test"
"github.com/goplus/yap/ytest"
)
const _ = true
type complex struct {
ytest.Case
*App
}
type App struct {
ytest.App
}
//line ytest/demo/match/complex/complex_yapt.gox:1
func (this *complex) Main() {
//line ytest/demo/match/complex/complex_yapt.gox:1:1
d := test.Gopx_Var_Cast__0[string]()
//line ytest/demo/match/complex/complex_yapt.gox:3:1
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})
//line ytest/demo/match/complex/complex_yapt.gox:12:1
fmt.Println(d)
//line ytest/demo/match/complex/complex_yapt.gox:13:1
test.Gopt_Case_MatchAny(this, d, "hello")
}
func (this *complex) Classfname() string {
return "complex"
}
func (this *App) Main() {
ytest.Gopt_App_Main(this, new(complex))
}
func main() {
new(App).Main()
}