common go code