github.com/figure1/go-intervals (go): Package intervals allows managing of integer intervals. Inserting and deleting intervals will automatically collapse/split existing intervals as needed.  The following example creates an interval set, adds intervals, deletes intervals and prints the result.
Keywords: go|golang|interval-set|intervals