code: func getEventByIdHandler(w http.ResponseWriter, r *http.Request) {
  	if r.Body != nil {
  		defer r.Body.Close()
  	}
  
  	// URL parameters
  	vars := mux.Vars(r)
  	id := vars["id"]
  
  	// Get the event
  	e, err := getEventById(id)
  	if err != nil {
  		switch x := err.(type) {
  		case *errors.ErrEventNotFound:
  			http.Error(w, x.Error(), http.StatusNotFound)
  		default:
  			http.Error(w, x.Error(), http.StatusInternalServerError)
  		}
  
  		LoggingClient.Error(err.Error())
  		return
  	}
  
  	encode(e, w)
  }
docs: //GET
  //Return the event specified by the event ID
  ///api/v1/event/{id}
  //id - ID of the event to return