Versions in this module Expand all Collapse all v0 v0.1.0 Aug 9, 2020 Changes in this version + var ErrFormatterNotFound = errors.New("formatter not found") + func ListFormatterAvailable() []string + func Register(name string, loadFn func() Formatter) + type Formatter interface + Format func(in interface{}) ([]byte, error) + func New(name string) (Formatter, error) + func NewJSONFormatter() Formatter + func NewYAMLFormatter() Formatter + type JSONFormatter struct + func (y JSONFormatter) Format(in interface{}) ([]byte, error) + type YAMLFormatter struct + func (y YAMLFormatter) Format(in interface{}) ([]byte, error)