github.com/senomas/gqlgen@v0.17.11-0.20220626120754-9aee61b0716a/plugin/resolvergen/testdata/return_values/resolvers.go (about) 1 package return_values 2 3 // THIS CODE IS A STARTING POINT ONLY. IT WILL NOT BE UPDATED WITH SCHEMA CHANGES. 4 5 import ( 6 "context" 7 ) 8 9 type Resolver struct{} 10 11 func (r *queryResolver) User(ctx context.Context) (User, error) { 12 panic("not implemented") 13 } 14 15 func (r *queryResolver) UserPointer(ctx context.Context) (*User, error) { 16 panic("not implemented") 17 } 18 19 // Query returns QueryResolver implementation. 20 func (r *Resolver) Query() QueryResolver { return &queryResolver{r} } 21 22 type queryResolver struct{ *Resolver }