initialize

package
v0.0.0-...-e629c8d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomTimeEncoder

func CustomTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)

CustomTimeEncoder 自定义日志输出时间格式 Author [SliverHorn](https://github.com/SliverHorn)

func Gorm

func Gorm() *gorm.DB

func GormMysql

func GormMysql() *gorm.DB

func InitRouters

func InitRouters() *gin.Engine

func Redis

func Redis() *redis.Client

func SonyFlake

func SonyFlake() *sonyflake.Sonyflake

func Viper

func Viper(path ...string) *viper.Viper

func Zap

func Zap() (logger *zap.Logger)

Zap 获取*zap.Logger

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL