[英]Error Message : go: go.mod file not found in current directory or any parent directory;
[英]Is go.mod in Go the same thing as package.json in JavaScript (node)?
我目前正在學習 Go 並提到使用go.mod
進行依賴管理。 When using node, package.json files are used for dependency management, so is go.mod
the same thing as something like npm init -y
?
是的。 go mod init將創建 go.mod 文件。 go mod tidy (如 npn install )將拉取 go.mod 文件中的依賴項, go 獲取將拉取官方網站上的單個安裝詳細信息...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.