MCPcopy
hub / github.com/putyy/res-downloader / buildResp

Method buildResp

core/http.go:159–165  ·  view source on GitHub ↗
(code int, message string, data interface{})

Source from the content-addressed store, hash-verified

157}
158
159func (h *HttpServer) buildResp(code int, message string, data interface{}) *ResponseData {
160 return &ResponseData{
161 Code: code,
162 Message: message,
163 Data: data,
164 }
165}
166
167func (h *HttpServer) openDirectoryDialog(w http.ResponseWriter, r *http.Request) {
168 folder, err := runtime.OpenDirectoryDialog(appOnce.ctx, runtime.OpenDialogOptions{

Callers 4

errorMethod · 0.95
successMethod · 0.95
ConfigMethod · 0.80
AppInfoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected