SetDefaultOutput sets the default output of pterm.
(w io.Writer)
| 14 | |
| 15 | // SetDefaultOutput sets the default output of pterm. |
| 16 | func SetDefaultOutput(w io.Writer) { |
| 17 | defaultWriter = w |
| 18 | color.SetOutput(w) |
| 19 | } |
| 20 | |
| 21 | // Sprint formats using the default formats for its operands and returns the resulting string. |
| 22 | // Spaces are added between operands when neither is a string. |
no outgoing calls
searching dependent graphs…