Documentation ¶
Overview ¶
Package gopkgpath provides support for obtaining and working with go package paths when go modules are used. It does not support vendor or GOPATH configurations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallerDepth ¶
CallerDepth returns the package path of the caller at the specified depth where a depth of 0 is the immediate caller. It determines the module name by finding and parsing the enclosing go.mod file and as such requires that go modules are being used.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.