完成quickPick的判断
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user