摘要: 一、安装常用操作系统安装如下:1)macbrew install cloc2)ubuntu、debian、deepin、mint等sudo apt install cloc3)redhat、centOSsudo yun install cloc二、基本用法1)统计文件夹代码行数cloc 目录路径2)排除某些文件夹:cloc ./ --exclude-dir=vendor,Test3)其他操作可以查... 阅读全文
posted @ 2020-10-07 02:06 一觉醒来写程序 阅读(1090) 评论(0) 推荐(0) 编辑
摘要: 一、 目录结构1)在gopath模式下作为一个workspace,需要包含src、pkg、bin三个目录workspace(/root/code/go)|-- src //源码目录(自己写的工程,或是go get获取的工程) |-- 我的工程 |--vendor //可选,该工程依赖的三方包 |-- pkg //编译生成的静态包文件(一般为.a文件)|-... 阅读全文
posted @ 2020-10-07 01:39 一觉醒来写程序 阅读(7245) 评论(0) 推荐(0) 编辑