基础知识
指南
参考资料
系统测试
资源
提交
初始化和管理 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()