Documentation ¶
Overview ¶
Package writer exports a simplified and customized writer.
Index ¶
- type Writer
- func (w *Writer) Bs(p []byte) *Writer
- func (w *Writer) Err() error
- func (w *Writer) Int(i int) *Writer
- func (w *Writer) Nl() *Writer
- func (w *Writer) Rune(r rune) *Writer
- func (w *Writer) Sp() *Writer
- func (w *Writer) Sticky(err error) *Writer
- func (w *Writer) Str(s string) *Writer
- func (w *Writer) Stringer(f fmt.Stringer) *Writer
- func (w *Writer) Tab() *Writer
- func (w *Writer) Unwrap() io.Writer
- func (w *Writer) With(f func(*Writer) error) *Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer provides helpful utility methods and saves error handling till the end.
func (*Writer) Sticky ¶
Sticky given a nonnil error sets that to the stickied error, halting any further output
Click to show internal directories.
Click to hide internal directories.