WIP First stab at golang rewrite