Centralizing error handling to a helpers package

This commit is contained in:
Muyao CHEN
2024-07-03 10:03:25 +02:00
parent 0c0159734e
commit 9fc6c05d38
7 changed files with 65 additions and 20 deletions

View File

@ -2,6 +2,7 @@ package config
import (
"html/template"
"log"
"github.com/alexedwards/scs/v2"
)
@ -11,5 +12,7 @@ type AppConfig struct {
TemplateCahce map[string]*template.Template
UseCache bool
InProduction bool
InfoLog *log.Logger
ErrorLog *log.Logger
Session *scs.SessionManager
}