it's no need to override Trace method.

This commit is contained in:
JessonChan 2019-04-03 10:19:09 +08:00
parent 3155f07ccd
commit 75b4bc5896
1 changed files with 4 additions and 11 deletions

View File

@ -17,6 +17,7 @@ package beego
import (
"bytes"
"errors"
"fmt"
"html/template"
"io"
"mime/multipart"
@ -27,8 +28,6 @@ import (
"strconv"
"strings"
"fmt"
"github.com/astaxie/beego/context"
"github.com/astaxie/beego/context/param"
"github.com/astaxie/beego/session"
@ -80,15 +79,9 @@ type ControllerComments struct {
// ControllerCommentsSlice implements the sort interface
type ControllerCommentsSlice []ControllerComments
func (p ControllerCommentsSlice) Len() int {
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) Len() int { 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] }
// Controller defines some basic http request handler operations, such as
// http context, template and view, session and xsrf.