MCPcopy Index your code
hub / github.com/VirusTotal/vt-cli / ReadString

Method ReadString

utils/string_reader.go:118–123  ·  view source on GitHub ↗

ReadString reads strings from the underlying StringReader and can call the map function associated to the MappedStringReader with that string, then returns the result produced by the map function.

()

Source from the content-addressed store, hash-verified

116// map function associated to the MappedStringReader with that string, then
117// returns the result produced by the map function.
118func (m *MappedStringReader) ReadString() (s string, err error) {
119 if s, err = m.r.ReadString(); err == nil {
120 return m.mapFn(s), nil
121 }
122 return s, err
123}
124
125// StringReaderFromCmdArgs returns a string reader for reading the arguments
126// passed in the command line. If the arguments consists in single hypen "-",

Callers

nothing calls this directly

Calls 1

ReadStringMethod · 0.65

Tested by

no test coverage detected