From db1afada108f2870a94ce7367cc517c689bdd0d7 Mon Sep 17 00:00:00 2001 From: Stephen McQuay Date: Wed, 4 Sep 2013 23:39:24 -0700 Subject: [PATCH] go fmt --- main.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 445c14e..1ed7f35 100644 --- a/main.go +++ b/main.go @@ -11,7 +11,6 @@ import ( "net/http" ) - func connect() (*websocket.Conn, error) { origin := "http://localhost/" url := "ws://localhost:8666/ws/" @@ -26,8 +25,8 @@ func createGame() (string, error) { defer resp.Body.Close() var g struct { - Id string `json:"id"` - } + Id string `json:"id"` + } if err := json.NewDecoder(resp.Body).Decode(&g); err != nil { return "", err } @@ -70,7 +69,7 @@ func negociate(ws *websocket.Conn, gameid string) (err error) { err = websocket.JSON.Send(ws, &bot.Config{ gameid, bot.Stats{ - // TODO: make these flags + // TODO: make these flags Hp: 200, Speed: 100, WeaponRadius: 50,