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)[原始碼]

初始化 Go 模組。

如果 go.mod 檔案已存在,此函數將不會執行任何操作。

參數
  • go_module_name (str) – 要初始化的 Go 模組名稱。

  • go_module_path (str) – 包含 Go 模組的目錄路徑。

airflow.providers.google.go_module_utils.install_dependencies(go_module_path)[原始碼]

為 Go 模組安裝依賴項。

參數

go_module_path (str) – 包含 Go 模組的目錄路徑。

此條目是否有幫助?