2 Star 14 Fork 16

王布衣/engine

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
paging.go 270 Bytes
Copy Edit Raw Blame History
王布衣 authored 2023-12-13 06:00 +08:00 . 调整util工具包
package utils
// GetPages 计算页数
func GetPages(pageSize, count int) (pages int) {
//pages = int(math.Ceil(float64(raw.Data.TotalHits) / float64(EastmoneyNoticesPageSize)))
pages = count / pageSize
n := count % pageSize
if n > 0 {
pages++
}
return pages
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/quant1x/engine.git
git@gitee.com:quant1x/engine.git
quant1x
engine
engine
v1.8.13

Search