For more information, see the fixes for golang.org/issue/11641 and golang.org/issue/16111. You are likely to be at risk if you: Use golang.org/x/text or any of its subpackages.

Use golang.org/x/text together with any of the following packages. Note that most of these packages have been updated to use golang.org/x/text and are not currently considered high-risk: golang.org/x/text/generics golang.org/x/text/markdown golang.org/x/sync/closer

Run any of the following code on golang.org/x/text or any of its subpackages. This is not considered high risk. Add these packages to your project or modify the code to use golang.org/x/text instead. golang.org/x/tools/goquery golang.org/x/tools/golint golang.org/x/tools/gorename

Run any of the following code on golang.org/x/text or any of its subpackages. This is not considered high risk. Add these packages to your project or modify the code to use golang.org/x/text instead. golang.org/x/tools/go vet golang.org/x/tools/golint golang

Installing golang.org/x/text

The following are the steps to install golang.org/x/text, if you have not already done so:

1) Add the following repository to your go.mod file.
2) Import the "github.com/golang/text" package in your code with import "github.com/golang/text" .
3) Compile and install it with go get -u github.com/golang/text .

Timeline

Published on: 12/26/2022 06:15:00 UTC
Last modified on: 01/05/2023 04:52:00 UTC

References