airflow.providers.google.go_module_utils

初始化和管理 Go 模块的实用工具。

函数

init_module(go_module_name, go_module_path)

初始化一个 Go 模块。

install_dependencies(go_module_path)

安装 Go 模块的依赖项。

模块内容

airflow.providers.google.go_module_utils.init_module(go_module_name, go_module_path)[source]

初始化一个 Go 模块。

如果 go.mod 文件已存在,此函数将不执行任何操作。

参数:
  • go_module_name (str) – 要初始化的 Go 模块的名称。

  • go_module_path (str) – 包含 Go 模块的目录路径。

airflow.providers.google.go_module_utils.install_dependencies(go_module_path)[source]

安装 Go 模块的依赖项。

参数:

go_module_path (str) – 包含 Go 模块的目录路径。

此条目有帮助吗?