F

fit

Package for reading FIT format files in Golang

Name Last Update
README.md Loading commit data...
crc.go Loading commit data...
fitdata.go Loading commit data...
fitprofile.go Loading commit data...
fitreader.go Loading commit data...

Go FIT file library

This package provides a golang interface for reading FIT Format files, as used by Garmin and other devices.

import (
  "code.blinkace.com/go/fit"
  "fmt"
  "os"
)

file, _ := os.Open("myfile.fit")
data, _ := fit.ReadFile(file)
file.Close()

records = data.GetRecordByType("event")
for _, r := range records {
  fmt.Println(r)
}