MCPcopy Index your code
hub / github.com/google/gops / cmdWithPrint

Function cmdWithPrint

internal/cmd/shared.go:256–263  ·  view source on GitHub ↗
(addr net.TCPAddr, c byte, params ...byte)

Source from the content-addressed store, hash-verified

254}
255
256func cmdWithPrint(addr net.TCPAddr, c byte, params ...byte) error {
257 out, err := cmd(addr, c, params...)
258 if err != nil {
259 return err
260 }
261 fmt.Printf("%s", out)
262 return nil
263}
264
265// targetToAddr tries to parse the target string, be it remote host:port
266// or local process's PID.

Callers 5

setGCFunction · 0.85
stackTraceFunction · 0.85
memStatsFunction · 0.85
versionFunction · 0.85
statsFunction · 0.85

Calls 1

cmdFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…