pkgx is a package manager that can basically do everything Homebrew can.
You can find full installation instructions here, but it's simplest to run:
curl -fsS https://pkgx.sh | sh
Congrats, you can now run literally almost any open-source package with one small exception for Golang. For that, you'll actually need Homebrew.
# The official Homebrew uninstall method
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
# Remove any lingering traces
sudo rm -rf /opt/homebrew
# Just install Go
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install -v go