perf(templates): Cache templates in map
This commit is contained in:
4
main.go
4
main.go
@@ -74,7 +74,9 @@ func main() {
|
||||
}
|
||||
|
||||
barcodeGenerator := &services.DefaultBarcodeService{}
|
||||
staticService := &services.DefaultStaticService{}
|
||||
staticService := &services.DefaultStaticService{
|
||||
Cache: make(map[string]string),
|
||||
}
|
||||
handler := handlers.DefaultHandler{
|
||||
Config: config,
|
||||
BarcodeService: barcodeGenerator,
|
||||
|
||||
Reference in New Issue
Block a user