 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggingMiddleware ¶
LoggingMiddleware logs the incoming HTTP request & its duration.
func RespondWithError ¶
func RespondWithError(w http.ResponseWriter, code int, message string)
RespondWithError writes the given error code and message to the writer.
func RespondWithJSON ¶
func RespondWithJSON(w http.ResponseWriter, code int, payload interface{})
RespondWithJSON writes the given payload marshalled as JSON to the writer.
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.