Replacing instances of erlang with Go