Documentation
¶
Overview ¶
findpackagesrc package provides API to detect original source of go package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finder ¶
type Finder struct {
// contains filtered or unexported fields
}
Finder has method returns package source
func (Finder) FindSourcePath ¶
FindSourcePath returns source folder of specified package
This method searches package in the following order:
- Replace defined in go.mod
- Downloaded by go mod in go.sum
- vendor folder
- $GOPATH
- $GOROOT (for go standard library)
Click to show internal directories.
Click to hide internal directories.