Stefan Boos

My personal GitHub pages

Follow me on GitHub

Learning Go

Table of Contents generated with DocToc

Getting Started

To get started, either … or …

Where to go next?

Practice some code katas, follow the documents listed in the section General Aspects and inspect the Package Libraries.

Prerequisites

Installing Go

Installation Notes

  • on the Mac I needed to add $HOME/go/bin to my $PATH manually (~/.zshrc)

Installing Go Tools

go get -u golang.org/x/tools/...

Uninstalling the Go Package on macOS

Language Tools

Linter

Check whether error returns are handeled correctly in all method calls:

go get -u github.com/kisielk/errcheck
errcheck

Heuristic Source Code Check: go vet

Go Frameworks, Libraries and Software

Exploration Tools

Package Libraries

Frequently used Packages

Testing

Parsing XML

Miscellaneous

Go Specific Details

General Aspects

Slices, Errors and Reflection

Go Maps

defer

Concurrency

Tools Easing the Programmer’s Life