helper

package
Version: v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 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

Source Files

Jump to

Keyboard shortcuts

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