From 18893f6489a8f7ba5bb672b2670b222fdfd55d2c Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Sat, 8 Nov 2014 18:46:29 -0500 Subject: [PATCH] formatting --- commands.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands.go b/commands.go index c2df859..785f229 100644 --- a/commands.go +++ b/commands.go @@ -38,10 +38,14 @@ var nearbyCommand = &Command{ log_error("unable to get neighbors: %v", err) return } + fmt.Fprintf(conn, "--------------------------------------------------------------------------------\n") + fmt.Fprintf(conn, "%-4s %-20s %s\n", "id", "name", "travel time") + fmt.Fprintf(conn, "--------------------------------------------------------------------------------\n") for _, neighbor := range neighbors { other := index[neighbor.id] fmt.Fprintf(conn, "%-4d %-20s %v\n", other.id, other.name, system.TravelTimeTo(other)) } + fmt.Fprintf(conn, "--------------------------------------------------------------------------------\n") }, }