Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFormatterNotFound Error occurred when the formatter is not found ErrFormatterNotFound = errors.New("formatter not found") )
Functions ¶
func ListFormatterAvailable ¶
func ListFormatterAvailable() []string
ListFormatterAvailable formatter available
Types ¶
type JSONFormatter ¶
type JSONFormatter struct{}
JSONFormatter ...
func (JSONFormatter) Format ¶
func (y JSONFormatter) Format(in interface{}) ([]byte, error)
Format marshalling input data as JSON
type YAMLFormatter ¶
type YAMLFormatter struct{}
YAMLFormatter ...
func (YAMLFormatter) Format ¶
func (y YAMLFormatter) Format(in interface{}) ([]byte, error)
Format marshalling input data as YAML
Click to show internal directories.
Click to hide internal directories.