()
| 11 | const MinInt = -MaxInt - 1 |
| 12 | |
| 13 | func (p *PageReq) Validate() { |
| 14 | if p.Index < 1 { |
| 15 | p.Index = 1 |
| 16 | } |
| 17 | if p.Size < 1 { |
| 18 | p.Size = 100000 |
| 19 | } |
| 20 | // if p.PerPage < 1 { |
| 21 | // p.PerPage = MaxInt |
| 22 | // } |
| 23 | } |
no outgoing calls
no test coverage detected