code: func encode(v interface{}, w http.ResponseWriter) {
  	w.Header().Set("Content-Type", "application/json; charset=UTF-8")
  	if err := json.NewEncoder(w).Encode(v); err != nil {
  		httpLog.Errorf("Failed to encode value to JSON: %v", v)
  		http.Error(w, "Failed to encode value to JSON", http.StatusInternalServerError)
  	}
  }
docs: // -- helpers