Categorygithub.com/diversability/gocom
modulepackage
1.0.5
Repository: https://github.com/diversability/gocom.git
Documentation: pkg.go.dev

# README

go-com

创建go程序的基础库封装

# Packages

No description provided by the author
Package g exposes goroutine struct g to user space.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AddPProfHandler adds several routes from package `net/http/pprof` to *gin.Engine object.
No description provided by the author
AllocsHandler will pass the call from /debug/pprof/allocs to pprof.
No description provided by the author
如果绑定失败,则返回错误描述.
BlockHandler will pass the call from /debug/pprof/block to pprof.
No description provided by the author
CmdlineHandler will pass the call from /debug/pprof/cmdline to pprof.
No description provided by the author
method POST GET headers Ext Header.
No description provided by the author
有reqform时,可能需要设置header:request.Header.Set("Content-Type", "application/x-www-form-urlencoded").
No description provided by the author
No description provided by the author
GoroutineHandler will pass the call from /debug/pprof/goroutine to pprof.
HeapHandler will pass the call from /debug/pprof/heap to pprof.
No description provided by the author
No description provided by the author
No description provided by the author
IndexHandler will pass the call from /debug/pprof to pprof.
No description provided by the author
example: LoadCfgFromFile("./config.json", cfg).
MutexHandler will pass the call from /debug/pprof/mutex to pprof.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ProfileHandler will pass the call from /debug/pprof/profile to pprof.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SymbolHandler will pass the call from /debug/pprof/symbol to pprof.
ThreadCreateHandler will pass the call from /debug/pprof/threadcreate to pprof.
函数运行计时器,用法,在函数开始的地方添加: defer TimeCounter()().
TraceHandler will pass the call from /debug/pprof/trace to pprof.
WrapGroup adds several routes from package `net/http/pprof` to *gin.RouterGroup object.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

AddPProfHandlerWrapper make sure we are backward compatible.
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
swagger:model.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
swagger:model.
No description provided by the author
swagger:model.
No description provided by the author