aboutsummaryrefslogtreecommitdiff
path: root/strava/sync.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-08-21 15:52:02 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-08-21 15:52:02 +0200
commitd25c2cba801cbaa9f9c0d5a92b90f153630ffe24 (patch)
tree8fc2672984dde4a621944839b951a478bb87460a /strava/sync.go
parent5b1962f13809f4306b50536a2105252a71b5d74f (diff)
Upgrade to Go 1.27 and apply go fix modernization
Diffstat (limited to 'strava/sync.go')
-rw-r--r--strava/sync.go6
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])
}