Skip to content

hchiam/learning-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning Golang

Just one of the things I'm learning: https://github.com/hchiam/learning

Tutorial from Google and Codecademy: https://www.codecademy.com/learn/learn-go

Download Golang: https://golang.org/dl

Aside: You might also want to set up your .bash_profile:

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

Build binary/executable of hello.go:

go build hello.go

Run binary/executable named simply hello:

./hello

Compile and execute in one step*

(*BUT does NOT create executable hello):

go run hello.go

To install Golang linter

go get -u golang.org/x/lint/golint

To get documentation on something

Example: to make the CLI show documentation on the Println function of fmt:

go doc fmt.Println

About

Learning Golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published