MCPcopy Create free account
hub / github.com/apache/fory / _find_go_module_root

Function _find_go_module_root

compiler/fory_compiler/cli.py:407–412  ·  view source on GitHub ↗
(base_go_out: Path)

Source from the content-addressed store, hash-verified

405
406
407def _find_go_module_root(base_go_out: Path) -> Optional[Path]:
408 base_go_out = base_go_out.resolve()
409 for candidate in (base_go_out, *base_go_out.parents):
410 if (candidate / "go.mod").is_file():
411 return candidate
412 return None
413
414
415def _read_go_module_path(go_module_root: Path) -> Optional[str]:

Callers 1

resolve_go_module_rootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected