()
| 207 | } |
| 208 | |
| 209 | func (s *UUIDSet) Bytes() []byte { |
| 210 | var buf bytes.Buffer |
| 211 | |
| 212 | buf.WriteString(s.SID.String()) |
| 213 | |
| 214 | for _, i := range s.Intervals { |
| 215 | buf.WriteString(":") |
| 216 | buf.WriteString(i.String()) |
| 217 | } |
| 218 | |
| 219 | return buf.Bytes() |
| 220 | } |
| 221 | |
| 222 | func (s *UUIDSet) AddInterval(in IntervalSlice) { |
| 223 | s.Intervals = append(s.Intervals, in...) |
no test coverage detected