From d25c2cba801cbaa9f9c0d5a92b90f153630ffe24 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Fri, 21 Aug 2026 15:52:02 +0200 Subject: Upgrade to Go 1.27 and apply go fix modernization --- strava/sync.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'strava') 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]) } -- cgit v1.3