Documentation ¶
Index ¶
- func PrintErrorText(w io.Writer, o ErrorOptions) error
- func PrintJson(w io.Writer, v interface{}, f ...string) error
- func PrintTable(w io.Writer, v interface{}, f ...string) error
- func PrintText(w io.Writer, v interface{}, o TextOptions, f ...string) error
- type ErrorOptions
- type Output
- type OutputType
- type TextOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintErrorText ¶
func PrintErrorText(w io.Writer, o ErrorOptions) error
Types ¶
type ErrorOptions ¶
type Output ¶
type Output struct {
// contains filtered or unexported fields
}
func New ¶
func New(o *Output, defaultType OutputType, defaultStringFormat, defaulErrorFormat string) *Output
func (*Output) ErrorFormat ¶
func (*Output) StringFormat ¶
type OutputType ¶
type OutputType string
const ( JsonType OutputType = "json" TableType OutputType = "table" TextType OutputType = "text" )
Click to show internal directories.
Click to hide internal directories.