cosmos-sdk/container/location.go

20 lines
410 B
Go

package container
import (
"fmt"
)
// Location describes the source code location of a dependency injection
// constructor.
type Location interface {
isLocation()
fmt.Stringer
fmt.Formatter
}
// LocationFromPC builds a Location from a function program counter location,
// such as that returned by reflect.Value.Pointer() or runtime.Caller().
func LocationFromPC(pc uintptr) Location {
panic("TODO")
}