move to context

This commit is contained in:
Eyal Post 2017-05-18 10:38:12 +03:00
parent 2513bcf584
commit 11b4bf8aaa
1 changed files with 2 additions and 4 deletions

View File

@ -1,11 +1,9 @@
package httpResponse
package context
import (
"strconv"
"net/http"
beecontext "github.com/astaxie/beego/context"
)
const (
@ -24,6 +22,6 @@ func (s StatusCode) Error() string {
}
// Render sets the http status code
func (s StatusCode) Render(ctx *beecontext.Context) {
func (s StatusCode) Render(ctx *Context) {
ctx.Output.SetStatus(int(s))
}