String implements the fmt.String interface.
()
| 42 | |
| 43 | // String implements the fmt.String interface. |
| 44 | func (h *HelpMessage) String() string { |
| 45 | var buf bytes.Buffer |
| 46 | buf.WriteString(helpHintPrefix + "\n") |
| 47 | h.Format(&buf) |
| 48 | return buf.String() |
| 49 | } |
| 50 | |
| 51 | // Format prints out details about the message onto the specified output stream. |
| 52 | func (h *HelpMessage) Format(w io.Writer) { |
no test coverage detected