package
0.0.5
Repository: https://github.com/brian-god/go-pkg.git
Documentation: pkg.go.dev

# Packages

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

# Functions

No description provided by the author
NewHandler [T any] , handler 工厂函数 参数: ctx : desc c : desc 返回值: *Handler[T] :desc.
NewHandlerFu [T any] , handlerFun 工厂函数 参数: fun : desc 返回值: app.HandlerFunc :desc.
NewNotParHandlerFu [T any] , 无参数的处理器 参数: fun : desc 返回值: app.HandlerFunc :desc.
NewService 创建服务.
ResponseFailure 返回失败响应数据 调用示例: */.
ResponseFailureErr 返回失败响应数据 调用示例: */.
ResponseSuccess 返回成功响应数据 调用示例: 1.成功时,不需要返回数据: server.ResponseSuccess(c, nil) 2.成功时,需要返回数据: server.ResponseSuccess(c, gin.H{"name": "xim","age": 18}) */.
WithEnv 设置环境变量.
WithTokenizer 设置token.

# Structs

Handler 接口处理器.
ResponseResult 响应结果.
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

Option 定义一个函数类型,用于修改Server配置.
ServiceFunc 实际提供服务的函数.
ServiceNotParFunc 实际提供服务的函数(无参数).