utils

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintError added in v0.6.0

func PrintError(message string)

PrintError prints out an error message in red

func PrintErrorMessage added in v0.6.0

func PrintErrorMessage(message string, err error)

PrintErrorMessage prints out a message in red followed by an error on the next line

func PrintJSON

func PrintJSON(input []byte)

PrintJSON prints out a byte slice as colorized JSON

func PrintMessage added in v0.6.0

func PrintMessage(message string)

PrintMessage prints out a message in green

func PrintStatus added in v0.6.0

func PrintStatus(status string, message string)

PrintStatus prints out a status code and optional message

func PrintYAML

func PrintYAML(inputString string)

PrintYAML prints out a string as colorized YAML

Types

This section is empty.

Jump to

Keyboard shortcuts

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