unions are easy too, sorta
This commit is contained in:
+6
-8
@@ -1,12 +1,10 @@
|
||||
type Response struct {
|
||||
Root struct {
|
||||
Id string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Children []content `json:"children"`
|
||||
Id string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Children []struct {
|
||||
Id string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
} `json:"children"`
|
||||
} `json:"root"`
|
||||
}
|
||||
|
||||
type content struct {
|
||||
Id string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
Reference in New Issue
Block a user