Categorygithub.com/caixw/go-http-routers-testing
modulepackage
1.0.0
Repository: https://github.com/caixw/go-http-routers-testing.git
Documentation: pkg.go.dev

# README

go-http-routers-testing

Go 路由的性能测试工具

https://caixw.github.io/go-http-routers-testing/

安装

go get github.com/caixw/go-http-routers-testing

运行测试

可以使用 test.benchtime 指定每个测试的运行时间。

go run main.go -test.benchtime=5s

或是

run.sh

如果要本地查看数据,请运行:

go run ./serve.go

或是

serve.sh

协作

apis 定义了各种类型的接口;

data 主要用于生成 json 数据;

routers 路由定义处,新路由只需要在此目录下定义 Load 方法即可;

不要提交 /docs/data 下的数据,该数据由本人统一产生。

版权

本项目采用 MIT 开源授权许可证,完整的授权说明可在 LICENSE 文件中找到。

# Packages

Package apis 预定义的各类型的 API 数据.
Package data 处理数据.
Package routers 各类路由包的定义处.