config

package
v0.0.0-...-9596fdd Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = initLogger()

Logger exposes the zap logger.

Functions

func ConnectDb

func ConnectDb() (*gorm.DB, error)

func Errorf

func Errorf(format string, v ...any)

Errorf prints error to the logger.

func Fatal

func Fatal(v ...any)

Fatal is equivalent to Print() followed by os.Exit(1).

func Fatalf

func Fatalf(format string, v ...any)

Fatalf is equivalent to Printf() followed by os.Exit(1).

func GetConnDB

func GetConnDB() *gorm.DB

func GetLogger

func GetLogger() *zap.Logger

func Init

func Init() error

func Print

func Print(v ...any)

Print prints to the logger.

func Printf

func Printf(format string, v ...any)

Printf prints to the logger.

Types

This section is empty.

Jump to

Keyboard shortcuts

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