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: 2 months 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-15T15:43:52.000Z (about 5 years ago)
- Last Synced: 2025-01-25T09:11:09.338Z (4 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 [](https://travis-ci.org/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).