Converting Ruby to GO