functional replacement for https://golang.org/pkg/strings/#Replace to https://golang.org/pkg/strings/#ReplaceAll since 1.31 golangci-lint gocritic was updated to include replace to replaceall hint. ReplaceAll was added in Go 1.12 See https://github.com/go-critic/go-critic/issues/872 for more.