package core type Interval struct { Start, End int } func NewInterval(start, end int) Interval { return Interval{ Start: start, End: end, } }