What's wrong with go build?

as shown in the figure, running go build reports an error, which is suspected to be related to upgrading the osx system. How to solve it?

Nov.05,2021

upgrade go version is fine. Try


brew reinstall go


Uninstall golang 1.9 and install golang1.11

Menu