MCPcopy Create free account
hub / github.com/tailscale/tailscale / ReadFile

Method ReadFile

net/dns/direct.go:651–653  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

649func (fs directFS) Remove(name string) error { return os.Remove(fs.path(name)) }
650
651func (fs directFS) ReadFile(name string) ([]byte, error) {
652 return os.ReadFile(fs.path(name))
653}
654
655func (fs directFS) Truncate(name string) error {
656 return os.Truncate(fs.path(name), 0)

Callers 1

TestDNSTrampleRecoveryFunction · 0.95

Calls 2

pathMethod · 0.95
ReadFileMethod · 0.65

Tested by 1

TestDNSTrampleRecoveryFunction · 0.76