Documentation
¶
Index ¶
- Constants
- func CheckErr(err error)
- func DiffJSONs(json1, json2 string)
- func GetNewTabWriter(output io.Writer) *tabwriter.Writer
- func HelpError(cmd *cobra.Command, args ...any) error
- func HelpErrorf(cmd *cobra.Command, format string, args ...any) error
- func PrettyJSON(data []byte) string
- func PrintTable(header table.Row, rows []table.Row)
- func StringToMapPointer(s string) map[string]*string
- func UsageErrorf(cmd *cobra.Command, format string, args ...any) error
- func Wrap(text string, lineWidth int) string
Constants ¶
View Source
const (
DefaultErrorExitCode = 1
)
Variables ¶
This section is empty.
Functions ¶
func DiffJSONs ¶ added in v0.1.9
func DiffJSONs(json1, json2 string)
DiffJSONs calculates the diff between two JSON strings and prints it in a pretty format.
func PrettyJSON ¶ added in v0.1.9
func StringToMapPointer ¶ added in v0.1.4
mapToMapPointer split string=string to a map[string]string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.