MCPcopy Create free account
hub / github.com/imroc/req / closeq

Function closeq

middleware.go:56–60  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

54}
55
56func closeq(v any) {
57 if c, ok := v.(io.Closer); ok {
58 c.Close()
59 }
60}
61
62func writeMultipartFormFile(w *multipart.Writer, file *FileUpload, r *Request) error {
63 content, err := file.GetFileContent()

Callers 1

handleDownloadFunction · 0.85

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…