Go Reflection Codex

Go's reflect package is powerful, it mirrors the semantics of the language closely, and it is designed to be fast. Unfortunately, the efficiency of it design does not lend its API to quick discovery. This loose collection of short articles is offered up as a learning aid and quick reference, in conjunction with the standard documentation.

You should read at the very least the intro to the reflect package and be familiar with the rules and concepts of assignability and addressability in Go.

Each article contains some snippets of Go code followed by the equivalent code using the reflect package.