options

package
v0.2.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Options = map[string]OutputOptions{
	"DEFAULT": OutputOptions(""),
	"MD":      OutputOptions("md"),
	"TXT":     OutputOptions("txt"),
	"HTML":    OutputOptions("html"),
	"JSON":    OutputOptions("json"),
}

Options for output format

Functions

func Message

func Message() string

Message returns the message that says the output possibilities

Types

type OutputOptions

type OutputOptions string

OutputOptions type that help work wit types

func (*OutputOptions) Set

func (o *OutputOptions) Set(v string) error

Set provide a way to change de object value

func (*OutputOptions) String

func (o *OutputOptions) String() string

String converts the object to string format

func (*OutputOptions) Type

func (o *OutputOptions) Type() string

Type returns the type of object

Jump to

Keyboard shortcuts

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