Versions in this module Expand all Collapse all v1 v1.0.2 Dec 18, 2019 Changes in this version + var Config struct + var Db *gorm.DB + var Logger *logrus.Logger + var Redis redisClient + func Debug(format string, values ...interface{}) + func LoadConfig(path string, resp interface{}) + func Loginfo(format string, values ...interface{}) + func LogrusMiddleware() gin.HandlerFunc + func New(conf *CgoConfig) (g *gin.Engine) + func NewConfig(path string) + func NewLogrus() *logrus.Logger + func NewMysql() + func NewRedis() *redis.Client + func NewTemplate(engine *gin.Engine, c *CgoConfig) + func Pagination(page int, pageSize int, out interface{}, orderBy string, where string) error + func Response404Err(ctx *gin.Context) + func ResponseNoAuth(ctx *gin.Context) + func ResponseParamErr(ctx *gin.Context) + func ResponseSuccess(ctx *gin.Context, data interface{}) + func Run(gin *gin.Engine) + func ServerErr(ctx *gin.Context, err string) + func Unescaped(x string) interface + func View(ctx *gin.Context, code int, tpl string, obj interface{}) + func View404(ctx *gin.Context, tpl string) + type CgoConfig struct + ConfigPath string + TplFuncMap template.FuncMap + type JsonData struct + Code int + Data interface{} + Msg string + func JsonMsg(code int, obj interface{}, msg string) *JsonData