helper

package
v0.0.44 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(printer Printer, err error)

CheckErr print a friendly error message

func StandardErrorMessage

func StandardErrorMessage(err error) (msg string, ok bool)

StandardErrorMessage is generic to the command in use

Types

type Printer

type Printer interface {
	PrintErr(i ...interface{})
	Println(i ...interface{})
	Printf(format string, i ...interface{})
}

Printer for print the info

Jump to

Keyboard shortcuts

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