module
Version:
v1.1.1
Opens a new window with list of versions in this module.
Published: Dec 16, 2019
License: Apache-2.0
Opens a new window with license information.
README
¶
Common

使用CircleCI进程CI Pipeline校验,Go Report Card进行Golang项目代码分析
- CircleCI: https://circleci.com/gh/chenguolin/go-common/tree/master
- Go Report Card: https://goreportcard.com/report/github.com/chenguolin/go-common
Golang 基础库
base62: base62编码
dlock: 基于Memcached分布式锁
executor: 重试函数封装
file: Linux目录、文件操作封装
hash: hash函数封装,支持SHA256、HMACSHA256
hex: 16进制编码、转换封装
http: HTTP请求封装
jwt: JSON web token封装
kafka: kafka封装
logger: log封装
mail: 发送邮件
math: 数学函数
rpc: RPC 客户端
rsq: RSA 非对称加密
sql: MySQL 封装
ticker: 定时任务
time: time封装
trace: 函数处理Trace封装
uuid: 分布式唯一ID生成器
url: url编解码封装
waitgroup: sync.WaitGroup封装支持限制goroutine数量
CI Workflow Check
gocyclo: 校验代码复杂度
gofmt: 校验代码是否都已经格式化
golint: 校验代码风格规范是否按照指定标准
gosimple: 校验代码是否可以简化
govet: 代码静态校验
misspell: 校验是否有英文单词拼写错误
unused: 校验是否有未使用变量、常量、函数、结构体等
gotest: 单元测试校验
Gitlab CI
如果使用Gitlab,也可以通过.gitlab-ci.yml运行Gitlab CI Pipeline,详细介绍请参考下面2篇文章
- Gitlab 安装使用
- Gitlab CI和CD配置
Directories
¶
Click to show internal directories.
Click to hide internal directories.