mirror of
https://github.com/bootdotdev/fcc-learn-golang-assets.git
synced 2025-12-10 07:11:19 +00:00
652 B
652 B
Go Install
Build an executable
Ensure you are in your hellogo repo, then run:
go install
Navigate out of your project directory:
cd ../
Go has installed the hellogo program globally. Run it with:
hellogo
Tip about "not found"
If you get an error regarding "hellogo not found" it means you probably don't have your Go environment setup properly. Specifically, go install is adding your binary to your GOBIN directory, but that may not be in your PATH.
You can read more about that here in the go install docs.