Skip to main content

parse_go_mod_with_context

Function parse_go_mod_with_context 

Source
pub fn parse_go_mod_with_context(
    content: &str,
    doc_uri: &Uri,
    ctx: &GoParseContext,
) -> Result<GoParseResult>
Expand description

Parses a go.mod file and extracts all dependencies with positions.

Resolves each dependency’s deps_core::parser::DependencySource against ctx’s $GOENV-derived GOPROXY/GOPRIVATE configuration (spec 034 FR-002/FR-007/FR-008/FR-009).

§Errors

Same as parse_go_mod.