/golang-hello-world

A sandbox for getting feet wet with golang

Primary LanguageGo

Playground

What started out as a hello world example has turned into a sandbox of chaos of the last year. At this point it's become a bit of a scratch pad as I'm working through the core language specification or digging more into the standard library.

Resources

More resources for future musings

TIL

Error formatters exist

fmt has a formatter that returns a string that satisfies an error type.

// Errorf formats according to a format specifier and returns the string as a
// value that satisfies error.

fmt.Errorf("parsing %s as HTML: %v", url, err)