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

Method ReadLine

pprof.go:58–61  ·  view source on GitHub ↗

ReadLine returns a line of text (a command) read from the user. prompt is printed before reading the command.

(prompt string)

Source from the content-addressed store, hash-verified

56// ReadLine returns a line of text (a command) read from the user.
57// prompt is printed before reading the command.
58func (r *readlineUI) ReadLine(prompt string) (string, error) {
59 r.rl.SetPrompt(prompt)
60 return r.rl.Readline()
61}
62
63// Print shows a message to the user.
64// 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