MCPcopy Create free account
hub / github.com/Hackmanit/Web-Cache-Vulnerability-Scanner / readFile

Function readFile

pkg/flags.go:252–258  ·  view source on GitHub ↗
(str string, field []string, name string)

Source from the content-addressed store, hash-verified

250}
251
252func readFile(str string, field []string, name string) []string {
253 if strings.HasPrefix(str, "file:") {
254 return ReadLocalFile(str, name)
255 } else {
256 return append(field, str)
257 }
258}
259
260func help() {
261 w := new(tabwriter.Writer)

Callers 1

ParseFlagsFunction · 0.85

Calls 1

ReadLocalFileFunction · 0.85

Tested by

no test coverage detected