Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/voles/go-iaaf-intervals
Golang (de)serialization of interval notations using the IAAF Standard Representation of Running Training.
https://github.com/voles/go-iaaf-intervals
golang iaaf
Last synced: about 1 month ago
JSON representation
Golang (de)serialization of interval notations using the IAAF Standard Representation of Running Training.
- Host: GitHub
- URL: https://github.com/voles/go-iaaf-intervals
- Owner: Voles
- License: mit
- Created: 2020-03-13T17:45:48.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-15T15:43:52.000Z (almost 5 years ago)
- Last Synced: 2024-06-20T06:22:12.557Z (7 months ago)
- Topics: golang, iaaf
- Language: Go
- Size: 11.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IAAF Intervals [![Build Status](https://travis-ci.org/Voles/go-iaaf-intervals.svg?branch=master)](https://travis-ci.org/Voles/go-iaaf-intervals) [![Go Report Card](https://goreportcard.com/badge/github.com/Voles/go-iaaf-intervals)](https://goreportcard.com/report/github.com/Voles/go-iaaf-intervals)
Golang (de)serialization of interval notations using the [IAAF Standard Representation of Running Training](http://www.newintervaltraining.com/iaaf-standardised-sessions-www-newintervaltraining-com.pdf).
## Usage
```go
package main
import (
"fmt"
interval "github.com/Voles/go-iaaf-intervals"
)
func main() {
set, err := interval.Parse("'2 x 6 x 400 (72”) [2’]'")
if err != nil {
panic(err)
}
fmt.Printf("total distance: %v", set.TotalDistance())
}
```## Spec
> sets x repetitions x distance (intensity/pace) [recovery between reps, then recovery between sets]
## Credits
This implementation is based on the [Python implementation](https://github.com/bwind/iaaf-intervals) created by [Bas Wind](https://github.com/bwind).