From ceb250ba20bea1721fa087b3db800926355287c8 Mon Sep 17 00:00:00 2001 From: Vyacheslav Dubinin Date: Wed, 19 Oct 2016 17:13:38 +0300 Subject: [PATCH] Move golang.org/x/net/context.Context interface implementation check to tests --- context.go | 3 --- context_test.go | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/context.go b/context.go index 5d3b6a4..d0fa7cb 100644 --- a/context.go +++ b/context.go @@ -17,7 +17,6 @@ import ( "github.com/gin-gonic/gin/binding" "github.com/gin-gonic/gin/render" "github.com/manucorporat/sse" - "golang.org/x/net/context" ) // Content-Type MIME of the most common data formats @@ -50,8 +49,6 @@ type Context struct { Accepted []string } -var _ context.Context = &Context{} - /************************************/ /********** CONTEXT CREATION ********/ /************************************/ diff --git a/context_test.go b/context_test.go index 97d4957..a1f9fa3 100644 --- a/context_test.go +++ b/context_test.go @@ -17,8 +17,11 @@ import ( "github.com/manucorporat/sse" "github.com/stretchr/testify/assert" + "golang.org/x/net/context" ) +var _ context.Context = &Context{} + // Unit tests TODO // func (c *Context) File(filepath string) { // func (c *Context) Negotiate(code int, config Negotiate) {