outputformat

package
v0.0.0-...-5811ad1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package outputformat defines the output formats

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

type Type int

Type is the type for output formats

const (
	// Text is the text output format.
	Text Type = iota // text
	// JSON is the JSON output format.
	JSON // json
)

func FromString

func FromString(outputFormatString string) (Type, error)

FromString parses the --format flag value and returns the corresponding output format type.

func (Type) String

func (i Type) String() string

Jump to

Keyboard shortcuts

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