1.7 KiB
1.7 KiB
OS X INSTALLATION CHEATSHEET
NOTE
If you have homebrew installed, you can easily install Go like so:
# if you don't have git install it like so:
brew install git
# then install go
brew install go
# add GOBIN path to your PATH in ~/.bash_profile
export PATH=${HOME}/go/bin:$PATH
1- Install Visual Studio Code Editor
- Install it but don't open it yet.
- Go to: https://code.visualstudio.com
- Select OS X (Mac) and start downloading
- Uncompress the downloaded file and move it to your
~/Applications
directory.
2- Install Git
- Grab and run the installer. Go to: https://git-scm.com/downloads
- Select VSCode as the default editor
3- Install Go
- Go to https://golang.org/dl
- Select OS X (Mac)
- Start the installer
4- Configure VS Code
-
Open VS Code; from the extensions tab at the left, search for "go" and install it
-
Close VS Code completely and open it up again
-
Go to View menu; select Command Palette
- Or just press
cmd+shift+p
- Type:
go install
- Select "Go: Install/Update Tools"
- Check all the checkboxes
- Or just press
-
After it's done, open the Command Palette again
- Type:
shell
- Select: "Install 'code' command in PATH"
- NOTE: You don't have to do this if you're on Windows.
- Type:
That's all! Enjoy! 🤩
For more tutorials: https://blog.learngoprogramming.com
Copyright © 2018 Inanc Gumus
Learn Go Programming Course