Goutil
go util 是golang通用工具包,实现一站式,开箱即用
Install / Use
/learn @ThreeKing2018/GoutilREADME
goutil
是go 的工具集,也叫小函数 <br/>打造一站式工具库<br/>会持续更新
安装
go get -u github.com/ThreeKing2018/goutil
目录说明
- 一个类别一个文件夹,文件夹里必含一个测试文件
- 可以使用go test测试
- 如array
|- array
|- array.go //核心文件
|- array_test.go //测试文件
|- readme.md //说明文档
目录分类列表
| 功能 | 包名 | 备注 | | :--- | :--- | :--- | | 目录操作 | pwdtools | 获取目录 | | 数值转换 | convertor | 操作数字等 | | 时间操作 | time | 获取自定义时间格式等| | 数组操作 | array | 数组转换等| | 文件操作 | filetool | 获取文件目录,读取,写等| | 格式化操作 | formatter | 如存储大小转换成可读的单位等| | 日志操作 | logtool | 简单好用, 可以打印不同等级日志等| | golog | golog | 操作日志等| | 分页操作 | paginator | 用于数据分页操作等| | rpc操作 | rpctool | rpc等| | 切片操作 | slicetool | 切片操作等| | 字符串操作 | strtool | 随机数,md5等| | 命令操作 | slicetool | linux相关等| | goaddr | goaddr | 获取内网地址和外网地址| | config | config | 配置文件-支持本地+远程配置文件读取,动态加载| | grpc+etcd服务注册 | register | grpc的resolver方式服务注册| | 常用hash函数 | hash | string、byte、file 的hash值 包括md5 sha1 sha256 sha512 | | curl | curl | curl get ,post 请求 | | 第三方免费服务 | Three_service | 如: 在线验证银行卡| | 定时器 | Timer | 原生,实现一个简单的定时器 | | 实现阻塞 | choke | 一般用于程序阻塞 , 简单好用 |
贡献来源
一般来源于github和我们自己写的
部分来源名单
- https://github.com/UlricQin/goutils
- https://github.com/henrylee2cn/goutil/
- https://github.com/wudaoluo/goutil
欢迎加入本团队
我们正在打造一个一站式工具库<br/>实现快速开发,做到开箱即用<br/>方便大家,请多多支持,加个星吧
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
343.1kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
