Documentation ¶ Index ¶ type Writer func New(jsonMode bool) *Writer func NewWithWriter(jsonMode bool, w io.Writer) *Writer func (w *Writer) Error(err error) func (w *Writer) IsJSON() bool func (w *Writer) JSON(v any) error func (w *Writer) Printf(format string, args ...any) 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 } func New ¶ func New(jsonMode bool) *Writer func NewWithWriter ¶ added in v0.50.0 func NewWithWriter(jsonMode bool, w io.Writer) *Writer func (*Writer) Error ¶ func (w *Writer) Error(err error) func (*Writer) IsJSON ¶ func (w *Writer) IsJSON() bool func (*Writer) JSON ¶ func (w *Writer) JSON(v any) error func (*Writer) Printf ¶ added in v0.61.0 func (w *Writer) Printf(format string, args ...any) Source Files ¶ View all Source files output.go Click to show internal directories. Click to hide internal directories.