some golang snippets just for practice