From bdbcba62e703a41b117daa20f135c8f1d9cd265b Mon Sep 17 00:00:00 2001 From: CodeLingo Bot Date: Thu, 14 Mar 2019 15:53:41 +1300 Subject: [PATCH] Fix based on best practices from Effective Go Signed-off-by: CodeLingo Bot --- handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler.go b/handler.go index b9a647c..343e98a 100644 --- a/handler.go +++ b/handler.go @@ -63,7 +63,7 @@ func getFromForm(values url.Values) *RequestOptions { return nil } -// RequestOptions Parses a http.Request into GraphQL request options struct +// NewRequestOptions Parses a http.Request into GraphQL request options struct func NewRequestOptions(r *http.Request) *RequestOptions { if reqOpt := getFromForm(r.URL.Query()); reqOpt != nil { return reqOpt