Source File
show_error.go
Belonging Package
src.elv.sh/pkg/diag
package diagimport ()// 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(, ...))}
The pages are generated with Golds v0.2.8-preview. (GOOS=darwin GOARCH=arm64)