//
pkg.gl
Category
github.com/YiuTerran/go-common/base
util
httputil
package
1.5.4
Repository:
https://github.com/yiuterran/go-common.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
6
Dependents
3
Files
72 SLOC
#
Functions
NewClient
NewClient 获取默认配置的客户端 如果没有特殊需求,直接用req自带的客户端即可.
NewRequest
NewRequest 使用本页配置的默认客户端发起请求 import过httputil之后,使用req.R()也是一样的.
Serv
Serv 启动服务,并在ctx结束时优雅关闭服务 这个封装的目的是保证该函数退出时,服务能够正常优雅关闭.
#
Variables
ReqLogger
ReqLogger 结合zap实现的默认logger.