MCPcopy Create free account
hub / github.com/devld/go-drive / GetReader

Function GetReader

script/object_io.go:43–53  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

41}
42
43func GetReader(v any) io.Reader {
44 switch v := v.(type) {
45 case Reader:
46 return v.r
47 case ReadCloser:
48 return v.r
49 case TempFile:
50 return v.r
51 }
52 return nil
53}
54
55func GetReadCloser(v any) io.ReadCloser {
56 switch v := v.(type) {

Callers 4

CopyFromMethod · 0.85
vm_httpFunction · 0.85
AppendFileMethod · 0.85
SaveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected