完成quickPick的判断

This commit is contained in:
huangsimin
2019-09-29 18:48:37 +08:00
parent 409ab24cb3
commit b88cbd8391
3 changed files with 242 additions and 109 deletions

View File

@@ -6,16 +6,43 @@ type MyStruct struct {
Key string
Do func(
a int,
b struct{ A, B int })
b struct {
A, B int
C string
})
S struct{ A int }
}
type MyStruct2 struct {
Value int
Key string
Do func(
a int,
b struct {
A, B int
C string
})
S struct{ A struct{ C interface{} } }
}
// DoFunc 非常丑陋
func DoFunc(a func(
a int,
b struct {
A, B int
C string
})) {
return
}
// ExStruct 升级
type ExStruct struct {
ChildStruct struct {
A int
B interface{}
}
C string
D func(a int, b string)
}
// SetChildStructA set
@@ -25,5 +52,7 @@ func (e *ExStruct) SetChildStructA(a int) {
func main() {
a := ExStruct{}
println(a)
b := MyStruct{}
c := MyStruct2{}
println(a, b, c)
}

View File