Some common crapy patterns implementation in golang