f0c2ac17a9
`Code generated by` disclaimer should be at the top of the file, as it is demonstrated in [this article](https://go.dev/blog/generate) on The Go Blog. The current placing breaks integration with some code formatters and linters which do no skip files generated by `genqlient`.
44 lines
1.1 KiB
Go
44 lines
1.1 KiB
Go
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
|
|
|
|
package test
|
|
|
|
import (
|
|
"github.com/Khan/genqlient/graphql"
|
|
)
|
|
|
|
// EmptyInterfaceResponse is returned by EmptyInterface on success.
|
|
type EmptyInterfaceResponse struct {
|
|
GetJunk interface{} `json:"getJunk"`
|
|
GetComplexJunk []map[string]*[]*map[string]interface{} `json:"getComplexJunk"`
|
|
}
|
|
|
|
// GetGetJunk returns EmptyInterfaceResponse.GetJunk, and is useful for accessing the field via an interface.
|
|
func (v *EmptyInterfaceResponse) GetGetJunk() interface{} { return v.GetJunk }
|
|
|
|
// GetGetComplexJunk returns EmptyInterfaceResponse.GetComplexJunk, and is useful for accessing the field via an interface.
|
|
func (v *EmptyInterfaceResponse) GetGetComplexJunk() []map[string]*[]*map[string]interface{} {
|
|
return v.GetComplexJunk
|
|
}
|
|
|
|
func EmptyInterface(
|
|
client graphql.Client,
|
|
) (*EmptyInterfaceResponse, error) {
|
|
var err error
|
|
|
|
var retval EmptyInterfaceResponse
|
|
err = client.MakeRequest(
|
|
nil,
|
|
"EmptyInterface",
|
|
`
|
|
query EmptyInterface {
|
|
getJunk
|
|
getComplexJunk
|
|
}
|
|
`,
|
|
&retval,
|
|
nil,
|
|
)
|
|
return &retval, err
|
|
}
|
|
|