errors

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrorWithUsageFactory

func NewErrorWithUsageFactory(usageFn func() error) func(string) error

Types

type ErrInvalidArgs

type ErrInvalidArgs struct{ Msg string }

func (*ErrInvalidArgs) Error

func (e *ErrInvalidArgs) Error() string

type ErrWithUsage

type ErrWithUsage struct {
	Msg     string
	UsageFn func() error
}

func (*ErrWithUsage) Error

func (e *ErrWithUsage) Error() string

func (*ErrWithUsage) Usage

func (e *ErrWithUsage) Usage()

Jump to

Keyboard shortcuts

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