Code for the go package