Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithPrettyPrint ¶
func WithPrettyPrint() func(*Options)
Types ¶
type Formatter ¶
type Formatter[T any] struct { // contains filtered or unexported fields }
func NewFormatter ¶
NewFormatter returns a Formatter that will turn entries of type T into JSON representation
func (*Formatter[T]) FormatEntries ¶ added in v0.22.0
FormatEntries returns a slice of entries as a formatted string, respecting the given formatting settings
func (*Formatter[T]) FormatEntry ¶
FormatEntry returns an entry as a formatted string, respecting the given formatting settings
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func DefaultOptions ¶
func DefaultOptions() *Options
Click to show internal directories.
Click to hide internal directories.