Useful Go code snippets