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 ¶
type ColoredWriter struct {
// contains filtered or unexported fields
}
func NewColoredWriter ¶
func NewColoredWriter(writer io.Writer) *ColoredWriter
func (ColoredWriter) Accent ¶
func (w ColoredWriter) Accent(s string)
func (ColoredWriter) Error ¶
func (w ColoredWriter) Error(s string)
func (ColoredWriter) Primary ¶
func (ColoredWriter) Primary(s string)
func (ColoredWriter) Table ¶
func (w ColoredWriter) Table(tab Table)
Click to show internal directories.
Click to hide internal directories.