将 Go 工作流或函数打包成 Unix 风格的管道命令
https://github.com/reugn/tpack
Go 解释器
可用于其他应用程序中的脚本编写,交互式 shell 或快速原型制作
https://github.com/traefik/yaegi
1 2 3 4 5 6 |
#!/usr/bin/env yaegi package main import "fmt" func main() { fmt.Println("test") } |
终端样式及颜色库,可用于终端着色
https://github.com/muesli/termenv
Go 内存表
用于处理表格数据,如 excel 类似于 pandas
https://github.com/datasweet/datatable
用 Go 实现 git 内部命令
直接解析git协议(操作文件),不依赖git命令,目前支持的命令还不多
https://github.com/ssrathi/gogit
通过 SSH 大规模执行命令
推荐 支持stream模式输出
https://github.com/yahoo/vssh
具有 Protobuf 服务定义的简单 RPC 框架
stars 4.3k
https://github.com/twitchtv/twirp
类似tail -f
stars 1.9k
https://github.com/hpcloud/tail
https://github.com/aybabtme/tailf #不推荐
使用案例:https://www.cnblogs.com/vincenshen/p/9783267.html
源码分析:https://www.cnblogs.com/zhaof/p/9663350.html
日志轮换库
https://github.com/lestrrat-go/file-rotatelogs
类似于 jQuery 的库,用于网页爬取
是爬虫库 colly 的基石
stars 9.3k
https://github.com/PuerkitoBio/goquery
https://github.com/gocolly/colly
限流
Rate Limit 中间件,支持 HTTP、FastHTTP,Gin、Echo 等框架
https://github.com/ulule/limiter
直接将 database/sql 行扫描到结构体、slice 和基本类型
https://github.com/blockloop/scan
用于日期时间的简单语义化且对开发人员友好的包
https://github.com/golang-module/carbon
tensorflow + Go,gopher 的方式
支持TensorFlow 2.3 stars 1.5k
https://github.com/galeone/tfgo
文件系统管理 stars 7.8k
可作为单独项目或中间件使用
https://github.com/filebrowser/filebrowser
类型安全的 Redis 客户端
stars 10.5k
https://github.com/go-redis/redis
转载请注明:轻风博客 » golang第三方库整理-2021