Installing and setting up a sessions package

This commit is contained in:
Muyao CHEN
2024-06-28 15:30:00 +02:00
parent 9911144aff
commit 8ec31267c6
6 changed files with 38 additions and 3 deletions

View File

@ -1,9 +1,15 @@
package config
import "html/template"
import (
"html/template"
"github.com/alexedwards/scs/v2"
)
// AppConfig holds the application config
type AppConfig struct {
TemplateCahce map[string]*template.Template
UseCache bool
InProduction bool
Session *scs.SessionManager
}