package page func GetOffset(page uint64, pageSize uint64) int { if page <= 0 { return 0 } return int((page - 1) * pageSize) }