util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidOutputFormats = map[string]bool{
	"text": true,
	"json": true,
	"yaml": true,
}

ValidOutputFormats defines the supported output formats

Functions

func GetValidFormats

func GetValidFormats() []string

GetValidFormats returns a list of valid output formats

func NormalizeFormat

func NormalizeFormat(format string) string

NormalizeFormat normalizes the format string to lowercase

func ValidateOutputFormat

func ValidateOutputFormat(format string) error

ValidateOutputFormat checks if the given format is valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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