Go implementation working