Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FormatFlag string
)
Functions ¶
func BlockStdOut ¶
func BlockStdOut()
func NewFormatter ¶
func NewFormatter(data interface{}) *outputFormatter
func RegisterFormatFlag ¶
func UnblockStdOut ¶
func UnblockStdOut()
Types ¶
type JSONFormatter ¶
type JSONFormatter struct{}
func (JSONFormatter) Format ¶
func (f JSONFormatter) Format(data interface{}) (string, error)
type YAMLFormatter ¶
type YAMLFormatter struct{}
func (YAMLFormatter) Format ¶
func (f YAMLFormatter) Format(data interface{}) (string, error)
Click to show internal directories.
Click to hide internal directories.