Optimizing template cache by using an application config ***

This commit is contained in:
Muyao CHEN
2024-06-27 14:03:43 +02:00
parent 2391f5a160
commit 1dd22ba8db
4 changed files with 69 additions and 11 deletions

9
pkg/config/config.go Normal file
View File

@ -0,0 +1,9 @@
package config
import "html/template"
// AppConfig holds the application config
type AppConfig struct {
TemplateCahce map[string]*template.Template
UseCache bool
}