Documentation ¶
Index ¶
- Variables
- func CloseRowsDefer(rows *sql.Rows)
- func GetConfig() *vo.AppConfig
- func GetMinutes() string
- func GetPDB(config *vo.AppConfig) *gorm.DB
- func InitApp()
- func LogError(err error)
- func LogInfo(msg string)
- func LogInfoF(msg string, v interface{})
- func OutPutHtml(c *gin.Context, s string)
- func OutPutText(c *gin.Context, s string)
- func Pongo2ContextAppend(ctx pongo2.Context, ctxAddition pongo2.Context) pongo2.Context
- func Pongo2ContextWithVersion(ctx pongo2.Context) pongo2.Context
- func ShowMessage(c *gin.Context, m *vo.Msg)
- func ShowUMessage(c *gin.Context, m *vo.Umsg)
- func SubCutContent(content string, length int) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Config *vo.AppConfig NewDb *gorm.DB PDB *gorm.DB Logger, _ = zap.NewProduction() Sugar *zap.SugaredLogger BsmiKbVersion string HCaptchClient *hcaptcha.Client )
Functions ¶
func GetMinutes ¶
func GetMinutes() string
func OutPutHtml ¶
func OutPutText ¶
func Pongo2ContextAppend ¶
func Pongo2ContextAppend(ctx pongo2.Context, ctxAddition pongo2.Context) pongo2.Context
func Pongo2ContextWithVersion ¶
func Pongo2ContextWithVersion(ctx pongo2.Context) pongo2.Context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.