Documentation
¶
Index ¶
- func RenderError(errorMsg string, opts Options)
- func RenderInfo(infoMsg string, opts Options)
- func RenderJSON(data interface{}, opts Options) string
- func RenderOutput(data Table, opts Options) string
- func RenderResult(result Result, opts Options) string
- func RenderString(msg string, opts Options) string
- type Data
- type Options
- type Result
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderError ¶
RenderError renders an error string.
func RenderJSON ¶
RenderJSON renders `data` as a JSON string.
func RenderOutput ¶
RenderOutput renders tabular data.
func RenderResult ¶
RenderResult renders a result string with optional key/value data.
func RenderString ¶ added in v0.33.0
RenderString renders a simple string with no extra formatting.
Types ¶
type Options ¶
type Options struct {
Header bool
CSV bool
JSON bool
Pretty bool
Debug bool
Error string
MultiLine bool
}
Options .
Click to show internal directories.
Click to hide internal directories.