(s string, def int64)
| 281 | } |
| 282 | |
| 283 | func convertStringToBigInt(s string, def int64) (int64, error) { |
| 284 | v, err := strconv.ParseInt(s, 10, 64) |
| 285 | if err != nil { |
| 286 | return def, fmt.Errorf("failed to convert string %s to int64: %w", s, err) |
| 287 | } |
| 288 | return v, nil |
| 289 | } |
| 290 | |
| 291 | // OptionalBigIntArrayParam is a helper function that can be used to fetch a requested parameter from the request. |
| 292 | // It does the following checks: |
no outgoing calls
no test coverage detected