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

TheSp1der/goerror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"))

About

GoLANG Error Handler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages