Refactoring to use internal packages

This commit is contained in:
Muyao CHEN
2024-06-30 16:41:46 +02:00
parent eca62e2e7b
commit 7294254e13
6 changed files with 10 additions and 10 deletions

15
internal/config/config.go Normal file
View File

@ -0,0 +1,15 @@
package config
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
}