code: func SendResponse(w http.ResponseWriter, result interface{}) error {
  	response := NewSuccessResponse(result)
  	w.Header().Set("Content-Type", "application/json")
  	enc := json.NewEncoder(w)
  	err := enc.Encode(response)
  	return err
  }
docs: // SendResponse builds a response from the result, sets the JSON
  // header, and writes to the http.ResponseWriter.