Documentation
¶
Index ¶
Constants ¶
View Source
const ( NAME = "json" OPTION_WRITER = "writer" )
Variables ¶
View Source
var (
WithWriter, GetWriter = option.New[io.Writer](OPTION_WRITER)
)
Functions ¶
func NewJsonFormatter ¶
func NewJsonFormatter(opts ...NewJsonFormatterOption) (lib_formatter_interface.Formatter, error)
Types ¶
type JsonFormatter ¶
type JsonFormatter struct {
// contains filtered or unexported fields
}
func (*JsonFormatter) FormatSlice ¶
func (f *JsonFormatter) FormatSlice(ctx context.Context, xs []any) error
type NewJsonFormatterOption ¶
type NewJsonFormatterOption = option.ApplyOption
Click to show internal directories.
Click to hide internal directories.