The documentation is outdated. The command that needs to be used here was changed in Go 1.17.
See https://go.dev/doc/go-get-install-deprecation