Go package implementing API Problem