errors

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: BSD-2-Clause Imports: 4 Imported by: 0

README

My personal errors package for Go.

Docs

Documentation

Overview

Package errors handles errors my way.

import (
    e "codeberg.org/pebbe/errors"
)

func main() {
    defer func() {
        if e.Panicked {
            _ = recover()
            os.Exit(1)
        }
    }()

    // code
}

Index

Constants

This section is empty.

Variables

View Source
var (
	Panicked bool
)

Functions

func ExitErr added in v0.3.0

func ExitErr(vars ...interface{})

func PanicErr added in v0.3.0

func PanicErr(vars ...interface{})

func WarnErr

func WarnErr(vars ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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