From faabc76fd68b0ecccba1dc8dae47220b28cce05a Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 25 Nov 2016 14:51:01 +0800 Subject: Golint fixed for modules/context --- modules/context/api.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/context/api.go') diff --git a/modules/context/api.go b/modules/context/api.go index 0da1823797..2823d696d2 100644 --- a/modules/context/api.go +++ b/modules/context/api.go @@ -16,6 +16,7 @@ import ( macaron "gopkg.in/macaron.v1" ) +// APIContext is a specific macaron context for API service type APIContext struct { *Context Org *APIOrganization @@ -63,6 +64,7 @@ func (ctx *APIContext) SetLinkHeader(total, pageSize int) { } } +// APIContexter returns apicontext as macaron middleware func APIContexter() macaron.Handler { return func(c *Context) { ctx := &APIContext{ -- cgit v1.2.3