Skip to content

loticket/utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

工具类:

bitcal

位计算换算例如: 3 => 1,2 15=>1,2,4,8

mapper

struct换成map(tag)

grpool

Goroutine pool 执行异步任务

random

随机字符串 数字 字母 字母+数字

encry

加密方式 md5 sha1 aes rsa 加解密

env

判断开发环境 dev(开发) test(测试) release(预发) prod(生产) 从服务器环境变量中取出GO_ENV的值

tree

无限级分类

timex

时间处理工具,包含当前时间,时间比较,时间格式化

verify

格式验证工具,时间格式,手机号,身份证号,邮箱,网址,数字等

process

平滑重启项目

stringx

数组查找 数组组合

aliasmethod

概率抽奖(离散采样算法)

使用 go get github.com/loticket/utils

About

工具函数,工具类

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages