Documentation ¶
Overview ¶
THIS FILE IS GENERATED. SEE ./scripts/gen_stdlib_map.sh Generated by: go version go1.16.6 linux/amd64
Index ¶
- func ListDependencies(dir, rootModule, rootVersion string, outputOptions output.Options) (dependencies map[string]GoModule, err error)
- func ListProjectDependencies(projectRoot string) ([]string, error)
- func ModuleName(dir, repo string, outputOptions output.Options) (moduleName string, err error)
- func NormalizeMonikerPackage(path string) string
- type GoModule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListDependencies ¶ added in v1.4.0
func ListDependencies(dir, rootModule, rootVersion string, outputOptions output.Options) (dependencies map[string]GoModule, err error)
ListDependencies returns a map from dependency import paths to the imported module's name and version as declared by the go.mod file in the current directory. The given root module and version are used to resolve replace directives with local file paths. The root module is expected to be a resolved import path (a valid URL, including a scheme).
func ListProjectDependencies ¶ added in v1.7.0
listProjectDependencies finds any packages from "$ go list all" that are NOT declared as part of the current project.
NOTE: This is different from the other dependencies stored in the indexer because it does not modules, but packages.
func ModuleName ¶ added in v1.4.0
ModuleName returns the resolved name of the go module declared in the given directory usable for moniker identifiers. Note that this is distinct from the declared module as this does not uniquely identify a project via its code host coordinates in the presence of forks.
func NormalizeMonikerPackage ¶ added in v1.6.6
NormalizeMonikerPackage returns a normalized path to ensure that all standard library paths are handled the same. Primarily to make sure that both the golangRepository and "std/" paths are normalized.