dig: go.uber.org/dig/internal/digreflect Index | Files

package digreflect

import "go.uber.org/dig/internal/digreflect"


Package Files


type Func Uses

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 Uses

func InspectFunc(function interface{}) *Func

InspectFunc inspects and returns runtime information about the given function.

func (*Func) String Uses

func (f *Func) String() string

String returns a string representation of the function.

Package digreflect imports 5 packages (graph) and is imported by 1 packages. Updated 2019-01-06. Refresh now. Tools for package owners.