This page lists optimizations done by the compilers. Note that these are not guaranteed by the language specification.
Putting a zero-width type in an interface value doesn't allocate.
Putting a word-sized-or-less non-pointer type in an interface value doesn't allocate.
For a map m of type map[string]T and []byte b, m[string(b)] doesn‘t allocate. (the temporary string copy of the byte slice isn’t made)
TODO
TODO