Go

Go Tooling

Notes based on: Go Tooling in Action – YouTube go build go install go get go get -d: download the code, but do not compile anything. go get -u: even if the code is already stored in GOPATH, download the latest version. go get -v: enable verbose mode. See: github.com/campoy/go-tooling-workshop/blob/master/1-source-code/1-workspace/1-intro.md The Go tool will first try …

Go Tooling Read More »

Learning Go Programming Language

Install Go on macOS Tutorial: Create a Go module – golang.org How to Write Go Code – golang.org Go Data Structures Arrays, slices (and strings): The mechanics of ‘append’ Strings, bytes, runes and characters in Go Effective Go Notes In Go, a function whose name starts with a capital letter can be called by a …

Learning Go Programming Language Read More »

Install Go on macOS and GOPATH, Import Path, Package & Module

Installation Download pkg and install by opening pkg file and following installation process. Also see: Installing multiple Go versions  Install Go Tools See: https://github.com/golang/tools Setting GOPATH and GOBIN Add /usr/local/go/bin to ~/.zshrc or ~/.bashrc. Also see: https://github.com/golang/go/wiki/SettingGOPATH Open a new terminal window and check GOPATH and GOBIN go help Package Go programs are organized into …

Install Go on macOS and GOPATH, Import Path, Package & Module Read More »