Documentation ¶
Index ¶
- Constants
- func FormatAge(t time.Time) string
- func FormatArrayMessage(message string, list []string) string
- func FormatDuration(d time.Duration) string
- func Handle(writer io.Writer, output string, obj interface{}) error
- func HandleString(writer io.Writer, msg string) error
- func HandlerTable(writer io.Writer, column []string, data [][]string)
- func ValidateAndSet(o *string) error
Constants ¶
View Source
const ( JSONOutput = "json" YAMLOutput = "yaml" )
Variables ¶
This section is empty.
Functions ¶
func FormatAge ¶ added in v0.44.0
FormatAge returns a formatted age string corresponding to the date provided
func FormatArrayMessage ¶
FormatArrayMessage format an array to a list
func FormatDuration ¶ added in v0.44.0
FormatDuration formats a duration in a human-readable way
func ValidateAndSet ¶
ValidateAndSet will validate the given output and if it's empty will set it with the default value "yaml"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.