Beispiel #1
0
// PrintBodyError will print out a colourful error given a string
func PrintBodyError(text string) {
	color := color.New(color.FgRed)
	color.Printf("    Error: %s\n", text)
}
Beispiel #2
0
// PrintBody will print out a colourful body given a string
func PrintBody(text string) {
	color := color.New(color.FgCyan)
	color.Printf("    %s\n", text)
}
Beispiel #3
0
// PrintBodyBold will print out a colourful body give a string
func PrintBodyBold(text string) {
	color := color.New(color.FgCyan, color.Bold)
	color.Printf("    %s\n", text)
}
Beispiel #4
0
// PrintHeader will print out a colourful header given a string
func PrintHeader(text string) {
	color := color.New(color.FgYellow, color.Bold)
	color.Printf("==> %s\n", text)
}