Golint fixed for modules/context

This commit is contained in:
Lunny Xiao committed 2016-11-25 14:53:59 +08:00
1 parent 6a28909f40
commit faabc76fd6
7 files changed
+20 -3

No files matched your search

+2
View File
@@ -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{