Skip to content

Commit

Permalink
it's no need to override Trace method.
Browse files Browse the repository at this point in the history
  • Loading branch information
JessonChan committed Apr 3, 2019
1 parent 3155f07 commit 75b4bc5
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package beego
import (
"bytes"
"errors"
"fmt"
"html/template"
"io"
"mime/multipart"
Expand All @@ -27,8 +28,6 @@ import (
"strconv"
"strings"

"fmt"

"github.com/astaxie/beego/context"
"github.com/astaxie/beego/context/param"
"github.com/astaxie/beego/session"
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 75b4bc5

Please sign in to comment.