output

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FormatFlag string
View Source
var Output interface{}

Functions

func Print

func Print(data interface{}, format string)

Types

type Formatter

type Formatter interface {
	Format(data interface{}) (string, error)
}

type JSONFormatter

type JSONFormatter struct{}

func (JSONFormatter) Format

func (f JSONFormatter) Format(data interface{}) (string, error)

type YAMLFormatter

type YAMLFormatter struct{}

func (YAMLFormatter) Format

func (f YAMLFormatter) Format(data interface{}) (string, error)

Jump to

Keyboard shortcuts

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