package digreflect
import "go.uber.org/dig/internal/digreflect"
Index ¶
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 InspectFuncPC ¶
InspectFuncPC inspects and returns runtime information about the function at the given program counter address.
func (*Func) Format ¶
Format implements fmt.Formatter for Func, printing a single-line representation for %v and a multi-line one for %+v.
func (*Func) String ¶
String returns a string representation of the function.
Source Files ¶
func.go
Directories ¶
Path | Synopsis |
---|---|
internal/digreflect/tests | |
internal/digreflect/tests/myrepository.git | |
internal/digreflect/tests/myrepository.git/mypackage |
- Version
- v1.19.0 (latest)
- Published
- May 13, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 6 days ago –
Tools for package owners.