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

Struct MappedStringReader

utils/string_reader.go:104–107  ·  view source on GitHub ↗

MappedStringReader reads strings from a StringReader and call a map function that transforms the strings in some other string.

Source from the content-addressed store, hash-verified

102// MappedStringReader reads strings from a StringReader and call a map function
103// that transforms the strings in some other string.
104type MappedStringReader struct {
105 r StringReader
106 mapFn func(string) string
107}
108
109// NewMappedStringReader creates a new MappedStringReader that reads strings from
110// r and can call mapFn for transforming the string before returning it.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected