digcopy

package
Version: v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RootCause added in v1.2.0

func RootCause(err error) error

Types

type ErrArgumentsFailed

type ErrArgumentsFailed struct {
	Func   *Func
	Reason error
}

func (ErrArgumentsFailed) Error

func (e ErrArgumentsFailed) Error() string

func (ErrArgumentsFailed) Format

func (e ErrArgumentsFailed) Format(w fmt.State, c rune)

type ErrParamSingleFailed added in v1.2.0

type ErrParamSingleFailed struct {
	Key    Key
	Reason error
}

ErrParamSingleFailed is returned when a paramSingle could not be built.

func (ErrParamSingleFailed) Error added in v1.2.0

func (e ErrParamSingleFailed) Error() string

func (ErrParamSingleFailed) Format added in v1.2.0

func (e ErrParamSingleFailed) Format(w fmt.State, c rune)

type Func

type Func struct {
	// Name of the function.
	Name string

	// Name of the package in which this function is defined.
	Package string

	// Path to the file in which this function is defined.
	File string

	// Line number in the file at which this function is defined.
	Line int
}

Func contains runtime information about a function.

func InspectFunc

func InspectFunc(function interface{}) *Func

InspectFunc inspects and returns runtime information about the given function.

func InspectFuncPC

func InspectFuncPC(pc uintptr) *Func

InspectFuncPC inspects and returns runtime information about the function at the given program counter address.

func (*Func) Format

func (f *Func) Format(w fmt.State, c rune)

Format implements fmt.Formatter for Func, printing a single-line representation for %v and a multi-line one for %+v.

func (*Func) String

func (f *Func) String() string

String returns a string representation of the function.

type Key added in v1.2.0

type Key struct {
	T reflect.Type

	// Only one of name or group will be set.
	Name  string
	Group string
}

func (*Key) String added in v1.2.0

func (po *Key) String() string

Source Files

Jump to

Keyboard shortcuts

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