MCPcopy
hub / github.com/tailscale/tailscale / writeProfile

Function writeProfile

cmd/tailscale/cli/debug.go:420–426  ·  view source on GitHub ↗
(dst string, v []byte)

Source from the content-addressed store, hash-verified

418}
419
420func writeProfile(dst string, v []byte) error {
421 if dst == "-" {
422 _, err := Stdout.Write(v)
423 return err
424 }
425 return os.WriteFile(dst, v, 0600)
426}
427
428func outName(dst string) string {
429 if dst == "-" {

Callers 1

runDebugFunction · 0.85

Calls 2

WriteMethod · 0.65
WriteFileMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…