udemy-go-web-1/internal/config/config.go

21 lines
398 B
Go

package config
import (
"go-udemy-web-1/internal/models"
"html/template"
"log"
"github.com/alexedwards/scs/v2"
)
// AppConfig holds the application config
type AppConfig struct {
TemplateCahce map[string]*template.Template
UseCache bool
InProduction bool
InfoLog *log.Logger
ErrorLog *log.Logger
Session *scs.SessionManager
MailChan chan models.MailData
}