Skip to content

zurs/go-interval

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-interval

Changes since forked

The Contains and During functions did not check if the two intervals start-times were equal. This caused some problems when trying to use the library. I do not know if this behavior is correct according to Allen's Interval Algebra, but it makes my life easier.

BE WARNED: The library is ready for production if I tag the library with 1.0.0.

Build Status Go Report Card Maintainability Test Coverage License: MIT

This library implements the Allen's interval algebra for go lang time intervals.

The go-interval library supports answering questions concerning time intervals. You can check if intervals overlap, seamlessly connect, there is a gap between the intervals, and more.

Documentation

godoc.org documentation

Installation

go get

go get github.com/zurs/go-interval

glide

glide get github.com/zurs/go-interval

Usage

import "github.com/zurs/go-interval"

© 2018 by Retailify GmbH

About

Allen's interval algebra for go lang time intervals

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%