I had a lot of issues trying to install Golang on macOS using asdf package manager to develop on Visual Studio Code.
So here's the steps needed to setup it properly:
Open Terminal and install asdf with this command:
You have to install Homebrew before running the installation command.