export GOROOT=/usr/local/go # This is the place where go gets insalled
export GOPATH=$GOROOT/bin # This is the place where you can create different projects and each project has 3 sub folder by default src, pkg and bin
export PATH="/usr/local/bin:$GOROOT:$GOPATH:$PATH"
go get -t -u -v github.com/sjwhitworth/golearn
$GOPATH/src
My findings
-
variables and methods are only declared within Structures and Interfaces
-
Remember there will never be a method declaration in a structure
-
Inheritance of a structure for method declaration is done by passing structure argument to a function that is outside the structure
-
variable types are mentioned after variable names