output

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFile

func GetFile() string

GetFile returns the output file name that is currently set.

func GetFormat

func GetFormat() string

GetFormat returns the output format type that is currently set.

func RegisterCommandOptions

func RegisterCommandOptions(f *flag.FlagSet, defaultParams map[string]string)

RegisterCommandOptions registers the command options related to the output options.

func Write

func Write(data interface{}) error

Write the given data in the format {json|yaml} that was set in options into a specified file. If file is not specified, then it will print on STDOUT.

Types

This section is empty.

Jump to

Keyboard shortcuts

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