format code

This commit is contained in:
Deng Ming
2022-12-23 10:25:06 +08:00
committed by Ming Deng
parent ef55bd0fac
commit 0bee140abb
64 changed files with 35 additions and 109 deletions

View File

@@ -27,7 +27,6 @@
//
// AddHealthCheck("database",&DatabaseCheck{})
//
// more docs: http://beego.vip/docs/module/toolbox.md
package toolbox
import (

View File

@@ -237,6 +237,7 @@ func (ms *MapSorter) Sort() {
}
func (ms *MapSorter) Len() int { return len(ms.Keys) }
func (ms *MapSorter) Less(i, j int) bool {
if ms.Vals[i].GetNext(context.Background()).IsZero() {
return false