allow map[string]interface{}, and other such things, as scalars

This commit is contained in:
Ben Kraft
2021-04-21 11:32:49 -07:00
parent f97d33e6ae
commit 2272ad8a12
8 changed files with 54 additions and 22 deletions
+3 -1
View File
@@ -7,7 +7,8 @@ import (
)
type EmptyInterfaceResponse struct {
GetJunk interface{} `json:"getJunk"`
GetJunk interface{} `json:"getJunk"`
GetComplexJunk []map[string]*[]*map[string]interface{} `json:"getComplexJunk"`
}
func EmptyInterface(
@@ -20,6 +21,7 @@ func EmptyInterface(
`
query EmptyInterface {
getJunk
getComplexJunk
}
`,
&retval,