mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 06:00:55 +00:00
it's no need to override Trace method.
This commit is contained in:
parent
3155f07ccd
commit
75b4bc5896
@ -17,6 +17,7 @@ package beego
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"errors"
|
"errors"
|
||||||
|
"fmt"
|
||||||
"html/template"
|
"html/template"
|
||||||
"io"
|
"io"
|
||||||
"mime/multipart"
|
"mime/multipart"
|
||||||
@ -27,8 +28,6 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"fmt"
|
|
||||||
|
|
||||||
"github.com/astaxie/beego/context"
|
"github.com/astaxie/beego/context"
|
||||||
"github.com/astaxie/beego/context/param"
|
"github.com/astaxie/beego/context/param"
|
||||||
"github.com/astaxie/beego/session"
|
"github.com/astaxie/beego/session"
|
||||||
@ -80,15 +79,9 @@ type ControllerComments struct {
|
|||||||
// ControllerCommentsSlice implements the sort interface
|
// ControllerCommentsSlice implements the sort interface
|
||||||
type ControllerCommentsSlice []ControllerComments
|
type ControllerCommentsSlice []ControllerComments
|
||||||
|
|
||||||
func (p ControllerCommentsSlice) Len() int {
|
func (p ControllerCommentsSlice) Len() int { return len(p) }
|
||||||
return len(p)
|
func (p ControllerCommentsSlice) Less(i, j int) bool { return p[i].Router < p[j].Router }
|
||||||
}
|
func (p ControllerCommentsSlice) Swap(i, j int) { p[i], p[j] = p[j], p[i] }
|
||||||
func (p ControllerCommentsSlice) Less(i, j int) bool {
|
|
||||||
return p[i].Router < p[j].Router
|
|
||||||
}
|
|
||||||
func (p ControllerCommentsSlice) Swap(i, j int) {
|
|
||||||
p[i], p[j] = p[j], p[i]
|
|
||||||
}
|
|
||||||
|
|
||||||
// Controller defines some basic http request handler operations, such as
|
// Controller defines some basic http request handler operations, such as
|
||||||
// http context, template and view, session and xsrf.
|
// http context, template and view, session and xsrf.
|
||||||
|
Loading…
Reference in New Issue
Block a user