Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Marshall ¶
func Marshall(format FormatType, items ...interface{}) ([]byte, error)
Marshall marshals list of items.
Types ¶
type FormatType ¶
type FormatType int
FormatType describes output format type.
const ( Plain FormatType = iota JSON NDJSON Trace )
type Marshal ¶
type Marshal struct {
// contains filtered or unexported fields
}
Marshal implements the Marshaller interface. It wraps other marshaller based on argument passed to the NewMarshal method.
func NewMarshal ¶
func NewMarshal(format FormatType) (*Marshal, error)
NewMarshal returns new Marshal instance.
Click to show internal directories.
Click to hide internal directories.