MCPcopy Create free account
hub / github.com/google/pprof / Print

Method Print

pprof.go:65–71  ·  view source on GitHub ↗

Print shows a message to the user. It is printed over stderr as stdout is reserved for regular output.

(args ...interface{})

Source from the content-addressed store, hash-verified

63// Print shows a message to the user.
64// It is printed over stderr as stdout is reserved for regular output.
65func (r *readlineUI) Print(args ...interface{}) {
66 text := fmt.Sprint(args...)
67 if !strings.HasSuffix(text, "\n") {
68 text += "\n"
69 }
70 fmt.Fprint(r.rl.Stderr(), text)
71}
72
73// PrintErr shows a message to the user, colored in red for emphasis.
74// It is printed over stderr as stdout is reserved for regular output.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected