https://github.com/0xff-dev/scripts
https://github.com/0xff-dev/scripts
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/0xff-dev/scripts
- Owner: 0xff-dev
- Created: 2018-06-19T14:22:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-12T09:29:27.000Z (over 5 years ago)
- Last Synced: 2023-03-04T03:22:54.680Z (about 2 years ago)
- Language: Go
- Size: 367 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Scripts
> 一些自己用的脚本
# 头像生成算法
# excel\_to\_json 说明
### xlsx文件格式如下
1列
2列
3列
1
2
3
1
2
4
1
5
6
1
5
7
8
9
10
### 目标格式
# runner.go 说明
> 通过通道监控程序的执行时间. 应用哎corn, 或者定时任务的云环境.# pool.go说明
> 模拟连接池, 使用mutex(互斥锁进行数据同步), resources是实现了Close接口的类型, 列入dbConnnect, PoolNew作为开放的工厂函数,
> Acquire在资源中获取一个资源去使用, 如果不存在资源, 那么就用工厂函数factory进行创建. Release是放资源, 把资源放回到resources,
> Close关闭池子, Release, Close使用额互斥锁, 保证数据closed的同步, 不能某个goroutine关闭池,
> 而其他的goroutine还在向resources写入数据# golang实现验证码
