checkdigitcalculator/error.go

15 lines
145 B
Go

package main
import (
"os"
"github.com/pterm/pterm"
)
func Error(err error) {
if err != nil {
pterm.Error.Println(err)
os.Exit(1)
}
}