mirror of
https://github.com/sstent/go-garminconnect.git
synced 2025-12-06 08:02:02 +00:00
13 lines
289 B
Go
13 lines
289 B
Go
package fit
|
|
|
|
import "fmt"
|
|
|
|
// ValidateFIT validates FIT file data with basic header check
|
|
func ValidateFIT(data []byte) error {
|
|
// Minimal validation - check if data starts with FIT header
|
|
if len(data) < 12 {
|
|
return fmt.Errorf("file too small to be a valid FIT file")
|
|
}
|
|
return nil
|
|
}
|