Skip to main content

Crate vlz_go

Crate vlz_go 

Source

Structs§

GoManifestFinder
Go manifest finder that discovers go.mod files under a directory tree. When patterns are set (FR-006), file names are matched by regex in order; first match wins.
GoModParser
Parser for Go go.mod manifest files.
GoResolver
Resolver that prefers go list -m all, falls back to graph from parser. Caches output when multiple go.mod share the same directory.
GoTierBAnalyzer

Constants§

GO_ECOSYSTEM
Go ecosystem for OSV.dev (PRD MOD-002, OSV schema). OSV / package ecosystem for Go modules.
GO_MANIFEST_NAME
Go manifest file name (FR-005). Overridden by regexes when set (FR-006).
GO_SUM_NAME
Adjacent checksum file used for pins when go list is skipped (Appendix A).

Functions§

find_go_mod_dir
Get the directory containing go.mod (manifest parent).
go_package_manager_available
Returns true if go appears to be on PATH (FR-024).
parse_go_list_m_all
Parse go list -m all output into a list of packages. Output format: one line per module, “modulepath version”. Public for fuzzing.
parse_go_mod
Parse go.mod content into a list of packages from require blocks. Excludes modules listed in replace and exclude directives. Public for fuzzing (NFR-020).
parse_go_sum
Parse go.sum into unique module@version pins (checksum set, not go list). Ignores /go.mod hash lines as separate packages. Public for fuzzing (NFR-020).