formatter

package
v0.0.0-...-3f25ee8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2017 License: BSD-3-Clause Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONFormatter

type JSONFormatter struct {
}

JSONFormatter prints-out facts in JSON format

func NewJSONFormatter

func NewJSONFormatter() *JSONFormatter

NewJSONFormatter returns new JSON formatter

func (*JSONFormatter) Print

func (jf *JSONFormatter) Print(facts map[string]interface{}) error

Print prints-out facts in JSON format

type KeyValueFormatter

type KeyValueFormatter struct {
}

KeyValueFormatter prints-out facts in k:v format

func NewKeyValueFormatter

func NewKeyValueFormatter() *KeyValueFormatter

NewKeyValueFormatter returns new key-value formatter

func (KeyValueFormatter) Print

func (kvf KeyValueFormatter) Print(facts map[string]interface{}) error

Print prints-out facts in k:v format

type PlainTextFormatter

type PlainTextFormatter struct {
}

PlainTextFormatter prints-out facts in k=>v format

func NewFormatter

func NewFormatter() *PlainTextFormatter

NewFormatter returns new plain-text formatter

func (PlainTextFormatter) Print

func (pf PlainTextFormatter) Print(facts map[string]interface{}) error

Print prints-out facts in k=>v format

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL