chore: fix goweb tests

This commit is contained in:
wpetit 2020-11-16 19:12:29 +01:00
parent 9343970672
commit fe90d81b5d
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,9 @@ func Example_usage() {
// On expose le service "template" avec l'implémentation
// basée sur le moteur de rendu HTML de la librairie standard
container.Provide(template.ServiceName, html.ServiceProvider("./templates"))
container.Provide(template.ServiceName, html.ServiceProvider(
html.NewDirectoryLoader("./templates"),
))
router := chi.NewRouter()