splited big file into smaller files by functionality

This commit is contained in:
Daniel Gil
2018-05-25 13:02:52 +02:00
parent 941fe9746a
commit 786bcb162b
10 changed files with 308 additions and 175 deletions

13
add.go Normal file
View File

@@ -0,0 +1,13 @@
package interval
func (intvls *intervals) Add(itvl *Interval) {
intvls.Intervals = append(intvls.Intervals, itvl)
intvls.reset()
}
func (intvls *intervals) reset() {
intvls.Sorted = false
intvls.GapsList = nil
intvls.OverlappedList = nil
intvls.MergeList = nil
}