当前位置:网站首页>golang modules初始化项目
golang modules初始化项目
2022-07-30 14:39:00 【JavaPub-rodert】
博主介绍: 自媒体 JavaPub 独立维护人,全网粉丝15w+,csdn博客专家、java领域优质创作者,51ctoTOP10博主,知乎/掘金/华为云/阿里云/InfoQ等平台优质作者、专注于Java、
GoLang技术领域和副业。
前言
环境:golang 1.18.3

设置代码
GOPROXY="https://goproxy.io,direct"
go modules 常用命令
go mod init # 初始化go.mod
go mod tidy # 更新依赖文件
go mod download # 下载依赖文件
go mod vendor # 执行此命令,会将刚才下载至 GOPATH 下的依赖复制至该项目根目录下的 vendor(自动新建) 文件夹下
go mod edit # 手动修改依赖文件
go mod graph # 打印依赖图
go mod verify # 校验依赖

边栏推荐
- Still saying software testing doesn't have a midlife crisis?9 years of test engineers were eliminated
- 1222. 可以攻击国王的皇后-力扣双百代码
- 5G-based Warehousing Informatization Solution 2022
- 泡沫褪去,DeFi还剩下什么
- 开始学习C语言了
- Installing and Uninstalling MySQL on Mac
- Office Automation | Office Software and Edraw MindMaster Shortcuts
- 算力顶天地,存力纳乾坤:国家超级计算济南中心的一体两面
- A simple change for problem, knapsack problem sets of shell
- Flink本地UI运行
猜你喜欢

Huawei's 7-year-experienced software testing director, gives some advice to all friends who want to change careers to learn software testing

Understand Chisel language. 28. Chisel advanced finite state machine (2) - Mealy state machine and comparison with Moore state machine

Lock wait timeout exceeded解决方案

SLF4J的使用

MongoDB starts an error Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)

A Small Case About Containers

智能合约安全——私有数据访问

A simple change for problem, knapsack problem sets of shell

English语法_不定代词 - both / either / neither

MongoDB启动报错 Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
随机推荐
这个编辑器居然号称快如闪电!
LeetCode_98_验证二叉搜索树
SQL 优化这么做就对了!
Remember an experience of interviewing an outsourcing company, should you go?
泡沫褪去,DeFi还剩下什么
超T动力 盈运天下——中国重汽黄河/豪沃WP14T产品首发荣耀上市!
【Vue.js 3.0源码】KeepAlive 组件:如何让组件在内存中缓存和调度?
数字量输入模块io
嵌入式开发:嵌入式基础知识——正确启动固件项目的 10 条建议
The website adds a live 2d kanban girl that can dress up and interact
MongoDB启动报错 Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
剑指 Offer II 037. 小行星碰撞
我们公司用了 6 年的网关服务,动态路由、鉴权、限流等都有,稳的一批!
Some thoughts on String
关于容器的小案例
English语法_不定代词 - both / either / neither
异常情况处置方案
CVE-2022-33891 Apache Spark 命令注入复现
华为再发「天才少年」召集令!曾放弃360万年薪的他也来首秀
PyQt5快速开发与实战 9.1 使用PyInstaller打包项目生成exe文件
