output

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidFormat = errors.New("invalid output format")

Functions

This section is empty.

Types

type Format

type Format struct {
	Type  FormatType
	Value string
}

func ParseFormat

func ParseFormat(s string) (Format, error)

func (Format) Write

func (f Format) Write(out io.Writer, entry interface{}) (err error)

type FormatType

type FormatType string
const (
	Default  FormatType = "default"
	JSON     FormatType = "json"
	YAML     FormatType = "yaml"
	Template FormatType = "template"
)

Jump to

Keyboard shortcuts

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