readlineUI implements the driver.UI interface using the github.com/chzyer/readline library. This is contained in pprof.go to avoid adding the readline dependency in the vendored copy of pprof in the Go distribution, which does not use this file.
| 39 | // dependency in the vendored copy of pprof in the Go distribution, |
| 40 | // which does not use this file. |
| 41 | type readlineUI struct { |
| 42 | rl *readline.Instance |
| 43 | } |
| 44 | |
| 45 | func newUI() driver.UI { |
| 46 | rl, err := readline.New("") |
nothing calls this directly
no outgoing calls
no test coverage detected