Giter VIP home page Giter VIP logo

go-workshop's Introduction

Welcome, welcome

Install Go on Windows

Install Git Bash (optional but recommended, don't skip if you are not sure)

  1. Download git binary: https://git-scm.com/download/win
  2. Keep everything default is fine.

Install Go binary

  1. Go to https://golang.org/dl and download the windows installer.

  2. Next. Next. Next...

  3. Now fire up git bash / cmd, type the following:

    $ go version
    go version go1.4.2 windows/amd64
  4. If your output is something like the above, done!

Set up GOPATH

GOPATH is where your go projects and libraries resides. Choose wisely :D

  1. Make a new folder in an accessible location, take note of the paths.
  2. Right click My Computer -> Perperties
  3. Choose Advanced system settings
  4. Open Envionment Variables...
  5. Under User variables, click New...
  6. Variable name: GOPATH Variable value: The folder chosen in step 1. Mine is C:\Users\patat_000\go.

Add Go bin folder to PATH

It enable you to invoke go binary everywhere.

  1. At step 4 of Set up GOPATH, look for a environment variable named PATH. If there are none, create one.

  2. Edit and append the following to the end of the value (don't delete existing value!): ;<YOUR GOPATH HERE>\bin

    Taking the previous example, mine would be like ;C:\Users\patat_000\go\bin

Install Go on Linux

Install Go binary

See https://golang.org/doc/install#tarball

Of course you can also consult your distro packages...

Set up GOPATH

$ mkdir $HOME/go

Now edit your $HOME/.profile to include the following lines:

export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin

NOTE: if you are not using bash, the file to edit might be different.

Install Go on Mac OS X

Install Go binary

See https://golang.org/doc/install#osx

If you have installed Homebrew:

$ brew install go

Set up GOPATH

$ mkdir $HOME/go

Now edit your $HOME/.profile to include the following lines:

export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin

NOTE: if you are not using terminal, the file to edit might be different. NOTE NOTE: same instructions as Linux's one :P

go-workshop's People

Contributors

limouren avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.