()
| 52 | } |
| 53 | |
| 54 | func (i Interval) String() string { |
| 55 | if i.Stop == i.Start+1 { |
| 56 | return fmt.Sprintf("%d", i.Start) |
| 57 | } else { |
| 58 | return fmt.Sprintf("%d-%d", i.Start, i.Stop-1) |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | type IntervalSlice []Interval |
| 63 |
nothing calls this directly
no outgoing calls
no test coverage detected