scan package - golang.org/x/vuln/scan - Go Packages (original) (raw)

Package scan provides functionality for running govulncheck.

See cmd/govulncheck/main.go as a usage example.

This section is empty.

This section is empty.

This section is empty.

Cmd represents an external govulncheck command being prepared or run, similar to exec.Cmd.

func Command

Command returns the Cmd struct to execute govulncheck with the given arguments.

Start starts the specified command but does not wait for it to complete.

After a successful call to Start the Wait method must be called in order to release associated system resources.

Wait waits for the command to exit. The command must have been started by Start.

Wait releases any resources associated with the Cmd.