-
Notifications
You must be signed in to change notification settings - Fork 7
Installation
JacobRoberts edited this page Apr 29, 2014
·
15 revisions
- Install Go from the official golang website.
- Configure your environment variables
$GOPATHand$GOROOT.
Setting up$GOPATH1 2
$GOROOTby default is set to/usr/local/goorC:\go, but can be changed
For example, my$GOROOTis/usr/local/go, and my$GOPATHis~/go
-
go get github.com/jacobroberts/chess. This will automatically populate your$GOPATHwith the relevant files.$GOPATH/srcwill contain all of the source code,$GOPATH/pkgwill contain the package files, and$GOPATH/binwill contain thechessexecutable. All of this project's dependencies will be installed as well.