MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / _get_url

Function _get_url

pre_commit/languages/golang.py:96–99  ·  view source on GitHub ↗
(version: str)

Source from the content-addressed store, hash-verified

94
95
96def _get_url(version: str) -> str:
97 os_name = platform.system().lower()
98 version = _infer_go_version(version)
99 return f'https://dl.google.com/go/go{version}.{os_name}-{_ARCH}.{_EXT}'
100
101
102def _install_go(version: str, dest: str) -> None:

Callers 1

_install_goFunction · 0.85

Calls 1

_infer_go_versionFunction · 0.85

Tested by

no test coverage detected