Files
bootdotdev-fcc-learn-golang…/course/12-local_development/exercises/10-go_install/readme.md
wagslane 9be3074de6 first
2023-05-01 15:25:27 -06:00

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.