Write writes the p bytes using the colored writer.
(p []byte)
| 324 | |
| 325 | // Write writes the p bytes using the colored writer. |
| 326 | func (colored *coloredWriter) Write(p []byte) (n int, err error) { |
| 327 | colored.c.SetWriter(colored.w) |
| 328 | defer colored.c.UnsetWriter(colored.w) |
| 329 | |
| 330 | return colored.c.Print(string(p)) |
| 331 | } |
no outgoing calls