Go rewrite