Skip to content

Instantly share code, notes, and snippets.

@febriliankr
Last active January 24, 2023 05:34
Show Gist options
  • Save febriliankr/47a11d3560d810acbd27afe8aed44d34 to your computer and use it in GitHub Desktop.
Save febriliankr/47a11d3560d810acbd27afe8aed44d34 to your computer and use it in GitHub Desktop.
Mac M1 Golang ZSH Setup
# 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
@febriliankr
Copy link
Author

export GOROOT=/usr/local/opt/go/libexec for non-homebrew

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment