基礎知識
指南
參考資料
系統測試
資源
提交
初始化和管理 Go 模組的實用工具。
init_module(go_module_name, go_module_path)
init_module
初始化一個 Go 模組。
install_dependencies(go_module_path)
install_dependencies
安裝 Go 模組的依賴項。
如果 go.mod 檔案已存在,此函式將不執行任何操作。
go.mod
go_module_name (str) – 要初始化的 Go 模組的名稱。
go_module_path (str) – 包含 Go 模組的目錄路徑。
此條目有幫助嗎?
init_module()
install_dependencies()