Versions in this module Expand all Collapse all v1 v1.0.2 Aug 17, 2023 v1.0.1 Jul 12, 2023 Changes in this version + func WrapVoidFunc(action func()) func(context *gin.Context) v1.0.0 Dec 7, 2021 Changes in this version + const FAILED + const SUCCESS + func GinFailed(c *gin.Context) + func GinFailedWithMsg(c *gin.Context, msg string) + func GinResult(c *gin.Context, result interface{}) + func GinResultVO(c *gin.Context, result ResultVO) + func GinSuccess(c *gin.Context) + func GinSuccessWith(c *gin.Context, data interface{}) + func GracefulExit(srv *http.Server) + func GracefulExitWithHook(srv *http.Server, hook func()) + type ResultVO struct + Code int8 + Data interface{} + Msg string + Success bool + func Failed() ResultVO + func FailedWithMsg(msg string) ResultVO + func Success() ResultVO + func SuccessWith(data interface{}) ResultVO + func (result ResultVO) IsFailed() bool + func (result ResultVO) IsSuccess() bool + type StaticResource struct + Path string + StaticFS embed.FS + func (_this *StaticResource) Open(name string) (fs.File, error)