Expand description
§monochange_go
monochange_go discovers Go modules from go.mod files and resolves
versions from git tags.
§Why use it?
- discover Go modules in single-module and multi-module repositories
- normalize Go module dependency edges for the shared planner
- infer
go mod tidyas the default lockfile refresh command
§Best for
- building Go-aware discovery flows without the full CLI
- converting Go module structure into shared
monochange_corerecords - managing multi-module monorepo releases with path-prefixed git tags
§Public entry points
discover_go_modules(root)discovers Go modulesGoAdapterexposes the shared adapter interface
§Scope
go.modparsing for module path, go version, and require directives- multi-module repository detection
go mod tidylockfile command inferencego.sumlockfile discovery
Structs§
Enums§
Constants§
Functions§
- adapter
- default_
dependency_ fields - Return the manifest fields that usually contain dependency versions.
- default_
dependency_ version_ prefix - default_
lockfile_ commands - discover_
go_ modules - discover_
lockfiles - parse_
go_ version - Parse a Go semver version string like
v1.2.3into asemver::Version. - supported_
versioned_ file_ kind - update_
go_ mod_ text - Update a
go.modfile’s require directives for cross-module dependencies. - validate_
versioned_ file - Return the default dependency-version prefix for this ecosystem. Validate that a Go versioned file contains a readable version field.
- write_
go_ placeholder_ manifest