helpers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Log is the global logger instance.

Functions

func SetupLogger

func SetupLogger(level string)

SetupLogger configures the global zerolog logger.

func WrapError

func WrapError(err error, operation, details string) error

WrapError wraps an error with operation context. Returns nil if err is nil.

Types

type YoinkError

type YoinkError struct {
	Operation string
	Details   string
	Err       error
}

YoinkError is a structured error with operation context.

func (*YoinkError) Error

func (e *YoinkError) Error() string

func (*YoinkError) Unwrap

func (e *YoinkError) Unwrap() error

Jump to

Keyboard shortcuts

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