A collection useful snippets in Go