Equals returns true if this span has the same start and end as the given span.
(other Span)
| 109 | // Equals returns true if this span has the same start and end as the given |
| 110 | // span. |
| 111 | func (s Span) Equals(other Span) bool { |
| 112 | if !bytes.Equal(s.Start, other.Start) { |
| 113 | return false |
| 114 | } |
| 115 | return bytes.Equal(s.End, other.End) |
| 116 | } |
| 117 | |
| 118 | // Spans is a slice of Span objects. |
| 119 | type Spans []Span |