interfaces themselves are actually trivial!

This commit is contained in:
Ben Kraft
2020-07-15 17:35:47 -07:00
parent 279228f9a4
commit cf6f57f5f1
5 changed files with 54 additions and 3 deletions
+12
View File
@@ -0,0 +1,12 @@
type Response struct {
Root struct {
Id string `json:"id"`
Name string `json:"name"`
Children []content `json:"children"`
} `json:"root"`
}
type content struct {
Id string `json:"id"`
Name string `json:"name"`
}