From 85643f5dad6ff410ebb78f26539e845f38df37e1 Mon Sep 17 00:00:00 2001 From: Quest Henkart Date: Mon, 22 Apr 2019 14:08:39 +0100 Subject: [PATCH] fix import --- graphql/interface.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/graphql/interface.go b/graphql/interface.go index 1589dc431b7..0dfdb80a4dc 100644 --- a/graphql/interface.go +++ b/graphql/interface.go @@ -3,13 +3,11 @@ package graphql import ( "encoding/json" "io" - - "github.com/qhenkart/gqlgen/graphql" ) func MarshalInterface(v interface{}) Marshaler { - return graphql.WriterFunc(func(w io.Writer) { - err := json.NewEncoder(w).Encode(val) + return WriterFunc(func(w io.Writer) { + err := json.NewEncoder(w).Encode(v) if err != nil { panic(err) }