// GetFormatter returns a formatter for a given string
GetFormatter returns a formatter for a given string
// GetFormatter returns a formatter for a given string
func GetFormatter(format Format) (Formatter, error) {
	switch format {
	case FormatJSON:
		return &jsonFormatter{}, nil
	case FormatHuman:
		return &humanFormatter{}, nil
	default:
		return nil, fmt.Errorf("Unsupported output format '%s' use json or human", string(format))
	}
}
func GetFormatter ( format Format ) ( Formatter , error ) { switch format { case FormatJSON : return & jsonFormatter { } , nil case FormatHuman : return & humanFormatter { } , nil default : return nil , fmt . Errorf ( " " , string ( format ) ) } }
GetFormatter returns a formatter for a given string
GetFormatter returns a formatter for a given string