gosh:提供 Go Statistics Handler、Struct、Measure 方法

时间:2021-05-29 15:22:52
【文件属性】:
文件名称:gosh:提供 Go Statistics Handler、Struct、Measure 方法
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-29 15:22:52
go api golang statistics monitoring Go 统计处理程序 关于 gosh是 Go Statistics Handler 的缩写。 此存储库提供以下功能。 Go 运行时统计结构。 Go 运行时统计 API 处理程序。 Go 运行时测量方法。 您可以指定最喜欢的 JSON 编码器。 包。 包。 您创建的原始包,等等。 安装 $ go get -u github.com/osamingo/gosh 用法 例子 package main import ( "encoding/json" "io" "log" "net/http" "github.com/osamingo/gosh" ) func main () { h , err := gosh . NewStatisticsHandler ( func ( w io. Writer ) gosh. JSONEncoder { return json
【文件预览】:
gosh-master
----.golangci.yml(190B)
----go.mod(41B)
----codecov.yml(306B)
----.github()
--------FUNDING.yml(99B)
--------PULL_REQUEST_TEMPLATE.md(129B)
--------workflows()
----LICENSE(1KB)
----gosh.go(4KB)
----README.md(2KB)
----gosh_test.go(4KB)
----.gitignore(192B)

网友评论