some snippets for Go