Compare commits

..
0 Commits
2 changed files with 1 additions and 4 deletions

No files matched your search

-3
View File
@@ -21,9 +21,6 @@ type calculate struct {
//
// Date : 15:50 2022/7/17
func (c *calculate) GetTotalPage(total int64, pageSize int64) int64 {
if pageSize <= 0 {
return 1
}
totalPage := total / pageSize
if total%pageSize > 0 {
totalPage++
+1 -1
View File
@@ -1,6 +1,6 @@
module git.zhangdeman.cn/zhangdeman/util
go 1.21
go 1.20
require (
github.com/mitchellh/go-homedir v1.1.0
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.