Versions in this module Expand all Collapse all v0 v0.6.0 Jul 11, 2023 Changes in this version + func CallStacks(res *Result) map[*Vuln]CallStack + type CallSite struct + Name string + Parent *FuncNode + Pos *token.Position + RecvType string + Resolved bool + type CallStack []StackEntry + type FuncNode struct + CallSites []*CallSite + Name string + Package *packages.Package + Pos *token.Position + RecvType string + func (fn *FuncNode) Receiver() string + func (fn *FuncNode) String() string + type ModVulns struct + Module *packages.Module + Vulns []*osv.Entry + func FetchVulnerabilities(ctx context.Context, c *client.Client, modules []*packages.Module) ([]*ModVulns, error) + type PackageGraph struct + func NewPackageGraph(goVersion string) *PackageGraph + func (g *PackageGraph) AddModules(mods ...*packages.Module) + func (g *PackageGraph) AddPackages(pkgs ...*packages.Package) + func (g *PackageGraph) GetModule(path string) *packages.Module + func (g *PackageGraph) GetPackage(path string) *packages.Package + func (g *PackageGraph) LoadPackages(cfg *packages.Config, tags []string, patterns []string) ([]*packages.Package, error) + type Result struct + EntryFunctions []*FuncNode + EntryPackages []*packages.Package + Vulns []*Vuln + func Binary(ctx context.Context, exe io.ReaderAt, cfg *govulncheck.Config, ...) (_ *Result, err error) + func Source(ctx context.Context, pkgs []*packages.Package, cfg *govulncheck.Config, ...) (_ *Result, err error) + type StackEntry struct + Call *CallSite + Function *FuncNode + type Vuln struct + CallSink *FuncNode + ImportSink *packages.Package + OSV *osv.Entry + Symbol string