blame

package module
v0.0.0-...-68f0601 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: AGPL-3.0 Imports: 5 Imported by: 5

README

go-blame

Golang version of blame

What is blame?

Blame is a utility that helps build detailed error messsages.

Why?

Because I like having more data about what went wrong.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileLocation

type FileLocation struct {
	FileName string
	FileLine string
	FuncName string
}

func L

func L(maybe_skip ...int) *FileLocation

func (FileLocation) String

func (fl FileLocation) String() string

type Wrapper

type Wrapper interface {
	Is(error) bool
	Error() string
	String() string
	WithAdditionalContext(messages ...string) Wrapper
}

func F

func F(format string, args ...any) Wrapper

func New

func New(message string) Wrapper

func O0

func O0(err error) Wrapper

func O1

func O1[A any](a A, err error) (A, Wrapper)

func O2

func O2[A any, B any](a A, b B, err error) (A, B, Wrapper)

func O3

func O3[A any, B any, C any](a A, b B, c C, err error) (A, B, C, Wrapper)

Directories

Path Synopsis
cmd
goblamedemo command

Jump to

Keyboard shortcuts

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