go-common

module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2019 License: Apache-2.0

README

Common

CircleCI Go Report Card

使用CircleCI进程CI Pipeline校验,Go Report Card进行Golang项目代码分析

  1. CircleCI: https://circleci.com/gh/chenguolin/go-common/tree/master
  2. Go Report Card: https://goreportcard.com/report/github.com/chenguolin/go-common

Golang 基础库

  1. base62: base62编码
  2. dlock: 基于Memcached分布式锁
  3. executor: 重试函数封装
  4. file: Linux目录、文件操作封装
  5. hash: hash函数封装,支持SHA256、HMACSHA256
  6. hex: 16进制编码、转换封装
  7. http: HTTP请求封装
  8. jwt: JSON web token封装
  9. kafka: kafka封装
  10. logger: log封装
  11. mail: 发送邮件
  12. math: 数学函数
  13. rpc: RPC 客户端
  14. rsq: RSA 非对称加密
  15. sql: MySQL 封装
  16. ticker: 定时任务
  17. time: time封装
  18. trace: 函数处理Trace封装
  19. ulid: 分布式唯一ID生成器

CI Workflow Check

  1. gocyclo: 校验代码复杂度
  2. gofmt: 校验代码是否都已经格式化
  3. golint: 校验代码风格规范是否按照指定标准
  4. gosimple: 校验代码是否可以简化
  5. govet: 代码静态校验
  6. misspell: 校验是否有英文单词拼写错误
  7. unused: 校验是否有未使用变量、常量、函数、结构体等
  8. gotest: 单元测试校验

Gitlab CI

如果使用Gitlab,也可以通过.gitlab-ci.yml运行Gitlab CI Pipeline,详细介绍请参考下面2篇文章

  1. Gitlab 安装使用
  2. Gitlab CI和CD配置

Directories

Path Synopsis
Package base62 base62编码实现方式 给定一个整数编码成固定的6位字符 Created by chenguolin 2018-08-22
Package base62 base62编码实现方式 给定一个整数编码成固定的6位字符 Created by chenguolin 2018-08-22
Package delay for delay queue Created by chenguolin 2019-07-10
Package delay for delay queue Created by chenguolin 2019-07-10
Package dlock MC实现的分布式锁 Created by chenguolin 2018-11-16
Package dlock MC实现的分布式锁 Created by chenguolin 2018-11-16
Package executor 重试执行封装函数 Created by chenguolin 2018-11-16
Package executor 重试执行封装函数 Created by chenguolin 2018-11-16
Package file for operator file、directory Created by chenguolin 2018-02-11 Package file for operator file、directory Created by chenguolin 2018-02-11
Package file for operator file、directory Created by chenguolin 2018-02-11 Package file for operator file、directory Created by chenguolin 2018-02-11
Package hash functions Create by chenguolin 2019-07-07
Package hash functions Create by chenguolin 2019-07-07
Package hex 16进制转换 Created by chenguolin 2018-11-17
Package hex 16进制转换 Created by chenguolin 2018-11-17
Package http authentication and authorization Created by chenguolin 2019-02-11 Package http net/http 封装 Created by chenguolin 2019-02-11 Package http signature Created by chenguolin 2018-11-17
Package http authentication and authorization Created by chenguolin 2019-02-11 Package http net/http 封装 Created by chenguolin 2019-02-11 Package http signature Created by chenguolin 2018-11-17
Package jwt jwt生成算法 Created by chenguolin 2018-11-21 Package jwt 通用变量、常量定义 Created by chenguolin 2018-11-21 Package jwt jwt生成算法 Created by chenguolin 2018-11-21 JWT参考链接: https://www.jianshu.com/p/576dbf44b2ae Package jwt jwt生成算法 Created by chenguolin 2018-11-21
Package jwt jwt生成算法 Created by chenguolin 2018-11-21 Package jwt 通用变量、常量定义 Created by chenguolin 2018-11-21 Package jwt jwt生成算法 Created by chenguolin 2018-11-21 JWT参考链接: https://www.jianshu.com/p/576dbf44b2ae Package jwt jwt生成算法 Created by chenguolin 2018-11-21
Package kafka 通用写kafka接口 Created by chenguolin 2018-09-21
Package kafka 通用写kafka接口 Created by chenguolin 2018-09-21
Package logger 封装traceId的log打印 Created by chenguolin 2018-11-17
Package logger 封装traceId的log打印 Created by chenguolin 2018-11-17
Package mail send email Created by chenguolin 2019-02-23
Package mail send email Created by chenguolin 2019-02-23
Package math 封装的常用的math函数 Created by chenguolin 2019-02-11
Package math 封装的常用的math函数 Created by chenguolin 2019-02-11
Package rpc json-rpc client Created by chenguolin 2019-02-22
Package rpc json-rpc client Created by chenguolin 2019-02-22
Package rsa generate verify Created by chenguolin 2019-02-16
Package rsa generate verify Created by chenguolin 2019-02-16
Package sql hash Created by chenguolin 2019-02-23 Package sql mysql 基础功能函数 Created by chenguolin 2018-05-21
Package sql hash Created by chenguolin 2019-02-23 Package sql mysql 基础功能函数 Created by chenguolin 2018-05-21
Package ticker ticker封装 Created by chenguolin 2019-02-11
Package ticker ticker封装 Created by chenguolin 2019-02-11
Package time 时间基础库 Created by chenguolin 2018-11-18
Package time 时间基础库 Created by chenguolin 2018-11-18
Package trace trace定义 用于上下文关联,常见于log打印traceId使用 Created by chenguolin 2018-11-18
Package trace trace定义 用于上下文关联,常见于log打印traceId使用 Created by chenguolin 2018-11-18
Package ulid ulid生成基础库 Created by chenguolin 2018-11-16 https://github.com/oklog/ulid
Package ulid ulid生成基础库 Created by chenguolin 2018-11-16 https://github.com/oklog/ulid

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL