Convert direction code to Go