code: func (a *API) robotConnections(res http.ResponseWriter, req *http.Request) {
  	jsonConnections := []*gobot.JSONConnection{}
  	if robot := a.master.Robot(req.URL.Query().Get(":robot")); robot != nil {
  		robot.Connections().Each(func(c gobot.Connection) {
  			jsonConnections = append(jsonConnections, gobot.NewJSONConnection(c))
  		})
  		a.writeJSON(map[string]interface{}{"connections": jsonConnections}, res)
  	} else {
  		a.writeJSON(map[string]interface{}{"error": "No Robot found with the name " + req.URL.Query().Get(":robot")}, res)
  	}
  
  }
docs: // robotConnections returns connections route handler
  // writes JSON with robot connections representation