package diag

import (
	
	
)

// ShowError shows an error. It uses the Show method if the error
// implements Shower, and uses Complain to print the error message otherwise.
func ( io.Writer,  error) {
	if ,  := .(Shower);  {
		fmt.Fprintln(, .Show(""))
	} else {
		Complain(, .Error())
	}
}

// Complain prints a message to w in bold and red, adding a trailing newline.
func ( io.Writer,  string) {
	fmt.Fprintf(, "\033[31;1m%s\033[m\n", )
}

// Complainf is like Complain, but accepts a format string and arguments.
func ( io.Writer,  string,  ...interface{}) {
	Complain(, fmt.Sprintf(, ...))
}