diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-21 15:52:02 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-21 15:52:02 +0200 |
| commit | d25c2cba801cbaa9f9c0d5a92b90f153630ffe24 (patch) | |
| tree | 8fc2672984dde4a621944839b951a478bb87460a /strava | |
| parent | 5b1962f13809f4306b50536a2105252a71b5d74f (diff) | |
Upgrade to Go 1.27 and apply go fix modernization
Diffstat (limited to 'strava')
| -rw-r--r-- | strava/sync.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/strava/sync.go b/strava/sync.go index 28ba925..a492a47 100644 --- a/strava/sync.go +++ b/strava/sync.go @@ -145,9 +145,9 @@ func activityGPX(activity Activity, streams activityStreams) ([]byte, error) { } points := make([]gpx.GPXPoint, len(streams.LatLng)) for i := range streams.LatLng { - point := gpx.GPXPoint{} - point.Latitude = streams.LatLng[i][0] - point.Longitude = streams.LatLng[i][1] + point := gpx.GPXPoint{ + Latitude: streams.LatLng[i][0], + Longitude: streams.LatLng[i][1]} if i < len(streams.Altitude) { point.Elevation = *gpx.NewNullableFloat64(streams.Altitude[i]) } |
