digreflect

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 (*Func) Format added in v1.10.1

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.

Directories

Path Synopsis
tests

Jump to

Keyboard shortcuts

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