Skip to content

Commit 2b0e8ef

Browse files
committed
🎨 模板模运算函数
1 parent 7678640 commit 2b0e8ef

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎controller/router.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ func MapRoutes() *gin.Engine {
5757
"minus": func(a, b int) int {
5858
return a - b
5959
},
60+
"mod": func(i, j int) bool { return i%j == 0 },
6061
})
6162

6263
ret.Use(gin.Recovery())

0 commit comments

Comments
 (0)