common

package
v0.0.0-...-6af9514 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gorm

func Gorm() *gorm.DB

Gorm 初始化数据库并产生数据库全局变量

func GormConfig

func GormConfig(prefix string, singular bool, logMode string) *gorm.Config

func GormMysql

func GormMysql() *gorm.DB

GormMysql 初始化Mysql数据库

func NewWriter

func NewWriter(w logger.Writer) *writer

func Viper

func Viper() *viper.Viper

func Zap

func Zap() *zap.SugaredLogger

Types

This section is empty.

Jump to

Keyboard shortcuts

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