https://github.com/retailify/go-interval
Allen's interval algebra for go lang time intervals
https://github.com/retailify/go-interval
golang
Last synced: about 1 year ago
JSON representation
Allen's interval algebra for go lang time intervals
- Host: GitHub
- URL: https://github.com/retailify/go-interval
- Owner: retailify
- License: mit
- Created: 2018-04-25T21:10:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-30T06:32:36.000Z (about 8 years ago)
- Last Synced: 2025-02-13T15:24:40.711Z (over 1 year ago)
- Topics: golang
- Language: Go
- Homepage: https://retailify.github.io/go-interval/
- Size: 28.3 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-interval
**BE WARNED:**
The library is ready for production if I tag the library with 1.0.0.
[![Build Status][travis-svg]][travis-url]
[![Go Report Card][go-report-badge]][go-report-url]
[![Maintainability][codeclimate-badge]][codeclimate-url]
[![Test Coverage][codeclimate-coverage-badge]][codeclimate-coverage-url]
[![License: MIT][license-svg]][license-url]
This library implements the [Allen's interval algebra][allens-url] 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][go-doc-url]
## Installation
### go get
``` bash
go get github.com/retailify/go-interval
```
### glide
``` bash
glide get github.com/retailify/go-interval
```
## Usage
``` go
import "github.com/retailify/go-interval"
```
© 2018 by [Retailify GmbH](https://retailify.de)
[travis-svg]: https://travis-ci.org/retailify/go-interval.svg?branch=master
[travis-url]: https://travis-ci.org/retailify/go-interval
[go-report-badge]: https://goreportcard.com/badge/github.com/retailify/go-interval
[go-report-url]: https://goreportcard.com/report/github.com/retailify/go-interval
[codeclimate-badge]: https://api.codeclimate.com/v1/badges/19b3641a71295105f000/maintainability
[codeclimate-url]: https://codeclimate.com/github/retailify/go-interval/maintainability
[codeclimate-coverage-badge]: https://api.codeclimate.com/v1/badges/19b3641a71295105f000/test_coverage
[codeclimate-coverage-url]: https://codeclimate.com/github/retailify/go-interval/test_coverage
[allens-url]: http://www.ics.uci.edu/~alspaugh/cls/shr/allen.html
[go-doc-url]: https://godoc.org/github.com/retailify/go-interval
[license-svg]: https://img.shields.io/badge/License-MIT-green.svg
[license-url]: https://opensource.org/licenses/MIT