Skip to content

Files

Latest commit

May 25, 2025
ec2e084 · May 25, 2025

History

History

use-pkg

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 25, 2025
May 15, 2025

README.md

use-pkg GO的第三方包使用和说明

1 go-echarts

https://github.com/go-echarts/go-echarts

2 resty 🔖

resty是 Go 语言的一个 HTTP client 库。resty功能强大,特性丰富。它支持几乎所有的 HTTP 方法(GET/POST/PUT/DELETE/OPTION/HEAD/PATCH等),并提供了简单易用的 API。

https://segmentfault.com/a/1190000040247099

3 gorm

https://github.com/go-gorm/gorm

https://gorm.io/

https://gorm.io/zh_CN/docs/

Testify 和mockery

https://github.com/stretchr/testify

mockery

Testify 是一个用于 Go 语言的流行测试框架,它提供了一组丰富的工具和功能,帮助开发者更方便、高效地编写测试用例。

Mockery 是一个用于 Go 语言的代码生成工具,主要用于生成接口的模拟(Mock)实现。在进行单元测试或集成测试时,当被测试的代码依赖于一些外部接口(如数据库访问接口、网络服务接口等),通过 Mockery 可以方便地创建这些接口的模拟对象,以控制它们的行为并隔离被测试代码与外部依赖的交互,从而更有效地测试代码的内部逻辑。

colly

colly是用 Go 语言编写的功能强大的爬虫框架。它提供简洁的 API,拥有强劲的性能,可以自动处理 cookie&session,还有提供灵活的扩展机制。

https://go-colly.org/

爬虫

https://segmentfault.com/a/1190000040275945

cobra

管理命令应用程序

https://github.com/spf13/cobra

对比 https://github.com/urfave/cli

日志管理:zap

GitHub地址:https://github.com/uber-go/zap

  • 支持JSON/TOML/YAML/HC:/en:L/envfile/Java properties等多种格式的配置文件;
  • 可以设置监听配置文件的修改,修改时自动加载新的配置;
  • 从环境变量、命令行选项和io。Reader中读取配置;
  • 从远程配置系统中读取和监听修改,如etcd/Consu;
  • 代码逻辑中显示设置键值

配置管理:viper

https://github.com/spf13/viper

gnet

https://github.com/panjf2000/gnet

Aggregnet是一个高性能,轻量级,非阻塞,事件驱动的网络框架

Ebitengine

https://github.com/hajimehoshi/ebiten

2D游戏引擎

fscan

https://github.com/flipped-aurora/gin-vue-admin

https://github.com/GoAdminGroup/go-admin

https://github.com/go-admin-team/go-admin

https://github.com/jmoiron/sqlx

https://learnku.com/docs/gorm/v2

wails

https://wails.io/zh-Hans/docs/introduction(🔖https://wails.io/zh-Hans/docs/howdoesitwork)