Migration
Recipes
- Add a missing
godirective - Add missing go.mod requirements
- Add v1-preserving
formattags totime.Durationand[N]bytefields - Change the
godirective version - Find
aws-sdk-gov1 usage - Find
encoding/jsonusage for the v2 migration - Find
github.com/golang/mockusage - Find go.mod files that could not be fully resolved offline
- Find
golang.org/x/expusage the standard library covers - Find
mapstructure.Errorusage - Find missing go.mod requirements
- Find
newrelic-telemetry-sdk-gousage - Find unused go.mod requirements
- Fix go.mod
// indirectmarkers - Format go.mod
- Migrate a module from
aws-sdk-gotoaws-sdk-go-v2 - Migrate
aws-sdk-gotoaws-sdk-go-v2 - Migrate
encoding/jsontoencoding/json/v2(all mechanical rewrites) - Migrate
encoding/jsontoencoding/json/v2, preserving v1 semantics - Migrate from
github.com/golang/mocktogo.uber.org/mock - Migrate from
mitchellh/mapstructuretogo-viper/mapstructure/v2 - Migrate
golang.org/x/expto the standard library - Migrate
golang.org/x/exp/constraintstocmp - Migrate
golang.org/x/exp/mapstomaps - Migrate
golang.org/x/exp/slicestoslices - Migrate
golang.org/x/exp/slogtolog/slog - Migrate
newrelic-telemetry-sdk-goto the OpenTelemetry Go SDK - Point
//go:generate mockgenatgo.uber.org/mock - Preserve v1 semantics on
encoding/json/v2calls - Record New Relic metrics through OpenTelemetry
- Remove redundant
defer ctrl.Finish() - Remove the
golang.org/x/exprequirement once unused - Remove unused go.mod requirements
- Require
aws-sdk-go-v2instead ofaws-sdk-go - Require
go-viper/mapstructure/v2instead ofmitchellh/mapstructure - Require
go.uber.org/mockinstead ofgithub.com/golang/mock - Require the OpenTelemetry Go SDK instead of
newrelic-telemetry-sdk-go - Swap
github.com/golang/mockimports togo.uber.org/mock - Swap
mitchellh/mapstructureimports togo-viper/mapstructure/v2 - Tidy go.mod
- Upgrade Go to 1.18
- Upgrade Go to 1.19
- Upgrade Go to 1.20
- Upgrade Go to 1.21
- Upgrade Go to 1.22
- Upgrade Go to 1.23
- Upgrade Go to 1.24
- Upgrade Go to 1.25
- Upgrade Go to 1.26