Ronald Peterson %!s(int64=10) %!d(string=hai) anos
pai
achega
c9424ae958
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      urlrouter.go

+ 1 - 1
urlrouter.go

@@ -131,7 +131,7 @@ func movePlayer(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
 	
 	e := json.NewEncoder(w)
 	e.Encode(p.Pos)
-	log.Println("Player %v moved in direction %v", p.Id, direction)
+	log.Printf("Player %v moved in direction %v\n", p.Id, direction)
 }
 
 // Request params: x={x}&y={y}&rows={rows}&cols={cols}