Last active
January 24, 2023 05:34
-
-
Save febriliankr/47a11d3560d810acbd27afe8aed44d34 to your computer and use it in GitHub Desktop.
Mac M1 Golang ZSH Setup
This file contains hidden or 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
# Golang Configuration | |
export GOPATH=$HOME/go | |
export GOROOT=/opt/homebrew/opt/go/libexec # for Mac M1 homebrew | |
export PATH=$PATH:$GOPATH/bin | |
export PATH=$PATH:$GOROOT/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
export GOROOT=/usr/local/opt/go/libexec
for non-homebrew