https://github.com/noble-gase/ne
[氖-Ne] Go开发实用库
https://github.com/noble-gase/ne
array crypto errgroup hash linklist redlock redlock-redis timewheel
Last synced: about 1 year ago
JSON representation
[氖-Ne] Go开发实用库
- Host: GitHub
- URL: https://github.com/noble-gase/ne
- Owner: noble-gase
- License: mit
- Created: 2025-03-11T01:50:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-27T06:34:22.000Z (about 1 year ago)
- Last Synced: 2025-03-27T07:30:57.502Z (about 1 year ago)
- Topics: array, crypto, errgroup, hash, linklist, redlock, redlock-redis, timewheel
- Language: Go
- Homepage: https://pkg.go.dev/github.com/noble-gase/ne
- Size: 138 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# 氖-Ne
[](https://golang.org)
[](https://pkg.go.dev/github.com/noble-gase/ne)
[](http://opensource.org/licenses/MIT)
[氖-Ne] Go开发实用库
## 获取
```shell
go get -u github.com/noble-gase/ne
```
## 包含
| 模块 | 说明 |
| --------- | ----------------------------------------------- |
| array | 数组的常用方法 |
| hashes | 封装便于使用 |
| crypts | 封装便于使用(支持aes&rsa) |
| mutex | 基于 Redis 的分布式锁 |
| validator | 支持汉化和自定义规则 |
| linklist | 一个并发安全的双向列表 |
| errgroup | 基于官方版本改良,支持并发协程数量控制 |
| values | 用于处理 `k-v` 格式化的场景,如:生成签名串等 |
| coord | 距离、方位角、经纬度与平面直角坐标系的相互转化 |
| images | 图片处理,如:缩略图、裁切、标注等 |
| protos | 实现 `url.Values` 和 `proto.Message` 的相互转换 |
| leveltree | 基于泛型的菜单和组织单位等分类层级树 |
| timewheel | 简单实用的单层时间轮(支持一次性和多次重试任务) |
| retry | 重试封装 |
| steps | 分批次处理切片 |
| 辅助方法 | IP、file、time、string、version-compare 等 |
> ⚠️ 注意:如需支持协程并发复用的 `errgroup` 请使用 👉 [氙-Xe](https://github.com/noble-gase/xe)
**Enjoy 😊**