diff options
Diffstat (limited to 'vendor/github.com/vektah/gqlgen/graphql/response.go')
-rw-r--r-- | vendor/github.com/vektah/gqlgen/graphql/response.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/vendor/github.com/vektah/gqlgen/graphql/response.go b/vendor/github.com/vektah/gqlgen/graphql/response.go deleted file mode 100644 index c0dc1c23..00000000 --- a/vendor/github.com/vektah/gqlgen/graphql/response.go +++ /dev/null @@ -1,18 +0,0 @@ -package graphql - -import ( - "context" - "encoding/json" - "fmt" -) - -type Response struct { - Data json.RawMessage `json:"data"` - Errors []*Error `json:"errors,omitempty"` -} - -func ErrorResponse(ctx context.Context, messagef string, args ...interface{}) *Response { - return &Response{ - Errors: []*Error{{Message: fmt.Sprintf(messagef, args...)}}, - } -} |