go-rampart

Go Reference github.com/francesconi/go-rampart Go Report Card

Go port of the Haskell Rampart library by Taylor Fausak.

This package provides types and functions for defining intervals and determining how they relate to each other. This can be useful to determine if and how two ordinal types overlap.

Install

go get github.com/francesconi/go-rampart

Example

a := rampart.NewInterval(2, 3)
b := rampart.NewInterval(3, 7)
rel := a.Relate(b)
// rel: RelationMeets

GitHub

View Github