formatter

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package formatter provide types and methods used to convert the results into a custom output (Yaml, Json, etc)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter interface {
	Output(results results.Result) ([]byte, error)
}

Formatter defines the behavior for a Formatter

func NewFormatter

func NewFormatter(t string) Formatter

NewFormatter returns a new instance of formatter

func NewFormatterWithError

func NewFormatterWithError(t string) (Formatter, error)

NewFormatterWithError returns a formatter or an error that can be returned by the formatter instance or in case the formatter is invalid

Jump to

Keyboard shortcuts

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