Bowen's Blog

Respect My Authorita.

Using Go Tutorial

| Comments

Just trying to use Go for I find it looks like C, and the cost of writing a hello world is quite small, plus the tutorial is petty easy to fetch. Just list what I’ve done to get the tutorial and write the hello world example, which already posted thousands time in the internet.

Install hg:

# brew install hg (mac)

#_ apt-get install mercurial (ubuntu)

Download go:

# wget

#_ wget

Install go:

   *  tar -C /usr/local/ -zxf go1.0.3.darwin-amd64.tar.gz

Export path:

   * export PATH=$PATH:/usr/local/go/bin

Get go tutorial:

   * go get

Run go tour:

   *  gotour

After run the hello world program, you can leave this alone and declare that you can actually play with go now…………………….