/goBasics

Repository with basics about Go programming.

Primary LanguageGoMIT LicenseMIT

Go Basics


Repository with basics about Go programming.

Go Logo

Setup

  1. Installing Go on Ubuntu
$ sudo add-apt-repository ppa:longsleep/golang-backports
$ sudo apt-get update
$ sudo apt-get install golang-go

For anothers S.O and distribution check the main page.

  1. Set GoPath for your workspace.
export GOPATH=/home/myuser/goProjects

I recommend you add it to your .bashrc or .zshrc.

Run go project

Just type the following command

$ go run filename.go

Exercises

Links && Credits