Go Basics: Difference between revisions

From Wiki
Jump to navigation Jump to search
Created page with "Resources: http://golang.org/ == Install and Setup == <pre> sudo apt-get install golang </pre> http://golang.org/doc/code.html discusses setting up the GOLANG environment v..."
 
Line 8: Line 8:
http://golang.org/doc/code.html
http://golang.org/doc/code.html
discusses setting up the GOLANG environment variable and your code repository
discusses setting up the GOLANG environment variable and your code repository
<pre>
mkdir $HOME/projects/go
export GOPATH=$HOME/projects/go (add this to .profile too)
</pre>


== Commands ==
== Commands ==

Revision as of 00:41, 6 February 2014

Resources: http://golang.org/

Install and Setup

sudo apt-get install golang

http://golang.org/doc/code.html discusses setting up the GOLANG environment variable and your code repository

mkdir $HOME/projects/go
export GOPATH=$HOME/projects/go (add this to .profile too)

Commands

godoc