Optimizing template cache by using an application config ***
This commit is contained in:
9
pkg/config/config.go
Normal file
9
pkg/config/config.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user