Documentation ¶
Overview ¶
Example (Writer_msgs) ¶
w := NewColoredWriter(os.Stdout) w.Accent("Accent") w.Primary("Primary") w.Error("Error")
Output: Accent Primary Error
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ColoredWriter ¶ added in v0.8.9
type ColoredWriter struct {
// contains filtered or unexported fields
}
func NewColoredWriter ¶ added in v0.8.9
func NewColoredWriter(writer io.Writer) *ColoredWriter
func (ColoredWriter) Accent ¶ added in v0.8.9
func (w ColoredWriter) Accent(s string)
func (ColoredWriter) Error ¶ added in v0.8.9
func (w ColoredWriter) Error(s string)
func (ColoredWriter) Primary ¶ added in v0.8.9
func (w ColoredWriter) Primary(s string)
func (ColoredWriter) Table ¶ added in v0.9.1
func (w ColoredWriter) Table(tab Table)
Click to show internal directories.
Click to hide internal directories.