Skip to content
This repository has been archived by the owner on Aug 25, 2019. It is now read-only.

Latest commit

 

History

History
44 lines (26 loc) · 718 Bytes

README.rst

File metadata and controls

44 lines (26 loc) · 718 Bytes

GoError

A go interface for easily handeling error calls.

Credit

This package uses ANSI Escape Codes from github.com/fatih/color by Fatih Arslan.

Installation

import (
   "github.com/TheSp1der/GoError"
   "errors"
)

Usage

Fatal Errors: This will stop the process.

GoError.Fatal(errors.New("This is a fatal error and will call os.Exit()"))

Warning Errors: Identify the error as a warning.

GoError.Warning(errors.New("This is a warning"))

Informational Errors:

GoError.Info(errors.New("This is non-critical information"))