Skip to content

shenron/sandbox-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sandbox-go

Start with golang

Install

There are two compilers (go, gcc-go)

https://wiki.archlinux.org/index.php/Go

sudo pacman -S go

# construct workspace
mkdir -p ~/dev/go/src
mkdir ~/dev/go/bin
mkdir ~/dev/go/pkg

cd ~/dev/go/src
git clone https://github.com/shenron/sandbox-go

Configuration

Add in you .bash_profile or .bashrc

# gopath
export GOPATH=$HOME/dev/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin

Run

In each folder launch program with 'go run'

go run ~/dev/go/src/sandbox-go/hello/hello.go

About

Start with golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages