(offset, limit, length int)
| 7 | ) |
| 8 | |
| 9 | func clamp(offset, limit, length int) (int, int) { |
| 10 | start := length |
| 11 | if offset < length { |
| 12 | start = offset |
| 13 | } |
| 14 | end := length |
| 15 | if limit < length-start { |
| 16 | end = start + limit |
| 17 | } |
| 18 | return start, end |
| 19 | } |
| 20 | |
| 21 | func contains(arr []string, el string) bool { |
| 22 | for _, item := range arr { |
no outgoing calls
no test coverage detected
searching dependent graphs…