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

Struct StringArrayReader

utils/string_reader.go:33–36  ·  view source on GitHub ↗

StringArrayReader is a wrapper around a slice of strings that implements the StringReader interface. Each time the ReadString method is called a string from the array is returned and the position is advanced by one. When all strings have been returned ReadString returns an io.EOF error.

Source from the content-addressed store, hash-verified

31// string from the array is returned and the position is advanced by one. When
32// all strings have been returned ReadString returns an io.EOF error.
33type StringArrayReader struct {
34 strings []string
35 pos int
36}
37
38// NewStringArrayReader creates a new StringArrayReader.
39func NewStringArrayReader(strings []string) *StringArrayReader {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected