1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-16 02:12:16 +00:00

sort ControllerComments

This commit is contained in:
shanfeng.yang
2017-07-15 17:26:20 +08:00
parent cab8458c1c
commit fc86f6422d
2 changed files with 7 additions and 0 deletions

View File

@@ -274,6 +274,7 @@ func genRouterCode(pkgRealpath string) {
sort.Strings(sortKey)
for _, k := range sortKey {
cList := genInfoList[k]
sort.Sort(ControllerCommentsSlice(cList))
for _, c := range cList {
allmethod := "nil"
if len(c.AllowHTTPMethods) > 0 {