-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a small note about setting up Go
- Loading branch information
1 parent
3f56b22
commit 9110b27
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# About setting up Go | ||
|
||
This is just a friendly reminder for myself, whenever I need to install Go on macOS, I need to set | ||
the following variables on the `~/.bash_profile` file: | ||
|
||
```bash | ||
export GOPATH=$HOME/go | ||
export GOBIN=$GOPATH/bin | ||
export PATH=$PATH:$GOBIN | ||
``` | ||
|
||
Most of the available online documentation and resources I found missed to set the `GOBIN` variable, | ||
which causes an error whenever running the `go get` command in the project's directory. |