errors

package module
v0.1.0 Latest Latest
Warning

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

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

README

My personal errors package for Go.

Docs

Documentation

Overview

Package errors handles errors my way.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(err error, msg ...interface{})

func Defer

func Defer(f func())

func WarnErr

func WarnErr(err error, msg ...interface{}) error

Types

type Stack

type Stack struct {
	// contains filtered or unexported fields
}

func NewStack

func NewStack() *Stack

func (*Stack) Check

func (s *Stack) Check(err error, msg ...interface{})

func (*Stack) Count

func (s *Stack) Count() int

func (*Stack) Defer

func (s *Stack) Defer(f func())

func (*Stack) Err

func (s *Stack) Err(final bool, msg ...interface{})

If final, then process deferred tasks, even when there are no errors

Jump to

Keyboard shortcuts

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