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

10
sort.go Normal file
View File

@@ -0,0 +1,10 @@
package interval
import "sort"
func (intvls *intervals) Sort() {
if !intvls.Sorted {
sort.Sort(ByLow(intvls.Intervals))
}
intvls.Sorted = true
}