error_handling

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: MIT Imports: 3 Imported by: 0

README

Error handling

A simple package that helps me to manage errors in my go programs 😊

Documentation

Index

Constants

View Source
const (
	DATE_FORMAT string = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

func FailError

func FailError(err error, outPut *os.File)

Does the same as LogError followed by os.Exit(1)

func LogError

func LogError(err error, outPut *os.File)

Checks if there are an error and log in the output that you specify

Types

This section is empty.

Jump to

Keyboard shortcuts

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