Print shows a message to the user. It is printed over stderr as stdout is reserved for regular output.
(args ...interface{})
| 63 | // Print shows a message to the user. |
| 64 | // It is printed over stderr as stdout is reserved for regular output. |
| 65 | func (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. |
nothing calls this directly
no outgoing calls
no test coverage detected