MCPcopy
hub / github.com/Velocidex/velociraptor / readAll

Function readAll

services/server_monitoring/server_monitoring_test.go:622–635  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

620}
621
622func readAll(filename string) string {
623 fd, err := os.Open(filename)
624 if err != nil {
625 return ""
626 }
627 defer fd.Close()
628
629 data, err := io.ReadAll(fd)
630 if err != nil {
631 return ""
632 }
633
634 return string(data)
635}

Callers 1

Calls 3

ReadAllMethod · 0.80
OpenMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected