Go
Snippets
Reusable snippets.
Interface assertion
Go’s interfaces are implicit, but this can be frustrating when trying to debug missing or incorrect receiver function implementations as you will only be warned at the call-site of the interface usage.
The best part is, this doesn’t actually assign or construct anything, so there’s no run-time overhead.
A full example:
Reading all input from stdin
Usage: