(offsetCount []string)
| 243 | } |
| 244 | |
| 245 | func getLimitParameters(offsetCount []string) (int64, int64, error) { |
| 246 | if len(offsetCount) < 2 { |
| 247 | return 0, 0, ErrSyntax |
| 248 | } |
| 249 | var offset, count, tmp int64 |
| 250 | var err error |
| 251 | for i := 0; i < 2; i++ { |
| 252 | if tmp, err = strconv.ParseInt(offsetCount[i], 10, 64); err != nil { |
| 253 | return offset, count, ErrInteger |
| 254 | } |
| 255 | if i == 0 { |
| 256 | offset = tmp |
| 257 | } else { |
| 258 | count = tmp |
| 259 | } |
| 260 | } |
| 261 | return offset, count, nil |
| 262 | } |
no outgoing calls
no test coverage detected