惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
D
Docker
有赞技术团队
有赞技术团队
D
DataBreaches.Net
The GitHub Blog
The GitHub Blog
爱范儿
爱范儿
H
Help Net Security
美团技术团队
MyScale Blog
MyScale Blog
B
Blog RSS Feed
C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
阮一峰的网络日志
阮一峰的网络日志
A
About on SuperTechFans
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
G
Google Developers Blog
月光博客
月光博客
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Blog — PlanetScale
Blog — PlanetScale
MongoDB | Blog
MongoDB | Blog
F
Fortinet All Blogs

博客园 - 你看起来真的很好吃

mac工具 linux系统时间管理 安装历史docker版本 OCR文本提取+NER命名实体识别 测试 深度学习-激活函数 go——make和new的区别 go——GC垃圾回收机制 go——标识符的命名规范 go语言——数据类型 go语言——转义符 git使用 项目文档目录总结 鼠标连点器——python版 windows使用YOLOV5训练模型——搭建编译环境 高匿名动态IP代理获取 logging模块进行格式化输出 笔记 Django admin 添加操作记录 facenet + fiass 实现人脸识别
go开发环境安装
你看起来真的很好吃 · 2024-04-25 · via 博客园 - 你看起来真的很好吃
  1. go开发环境下载:https://golang.google.cn/dl/
  2. 配置环境变量
    GOROOT:SDK安装路径
    PATH:添加SDK的bin目录
    GOPATH:工作目录
  3. 设置国内源
    设置国内代理:go env -w GOPROXY=https://goproxy.io,direct
    使用Go Modules的Vendor模式:  go env -w GO111MODULE=on
    go mod 命令:
    go mod tidy (
    1. 引用项目需要的依赖增加到go.mod文件。
    2. 去掉go.mod文件中项目不需要的依赖
    )
     go mod vendor : Go 语言模块系统中的一个命令,用于将项目依赖的所有模块(库)复制到项目目录下的 `vendor` 文件夹中
  4. vs code下载:https://code.visualstudio.com/
  5. vs code 安装go插件
    1. vs code安装vscode-go-syntax 插件
    2. 按下 Ctrl + Shift + X 打开扩展商店(或者点击界面左侧的扩展图标)。

    3. 在搜索框中输入 vscode-go-syntax

  6. 使用手册“:https://tour.go-zh.org/welcome/1