Skip to content

go Facts

See also: operations/go.

go.GoPackages

host.get_fact(GoPackages)

Returns a dict of installed Go binary packages (those installed via go install) keyed by their import path:

{
    "github.com/example/tool": {"v1.2.3"},
}