From 1956f95f9f9368e0606201dd5e7347779d704067 Mon Sep 17 00:00:00 2001 From: stffabi Date: Fri, 16 Feb 2024 08:04:16 +0100 Subject: [PATCH] [templates] Update templates to latest assetserver options --- v3/internal/templates/_base/default/main.go.tmpl | 2 +- v3/internal/templates/_common/main.go.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/v3/internal/templates/_base/default/main.go.tmpl b/v3/internal/templates/_base/default/main.go.tmpl index 7edc1c8b1b9..2459529e9a2 100644 --- a/v3/internal/templates/_base/default/main.go.tmpl +++ b/v3/internal/templates/_base/default/main.go.tmpl @@ -16,7 +16,7 @@ func main() { Name: "{{.ProjectName}}", Description: "A demo of using raw HTML & CSS", Assets: application.AssetOptions{ - FS: assets, + Handler: application.AssetFileServerFS(assets), }, Mac: application.MacOptions{ ApplicationShouldTerminateAfterLastWindowClosed: true, diff --git a/v3/internal/templates/_common/main.go.tmpl b/v3/internal/templates/_common/main.go.tmpl index b45568336eb..e4b1a628d4d 100644 --- a/v3/internal/templates/_common/main.go.tmpl +++ b/v3/internal/templates/_common/main.go.tmpl @@ -34,7 +34,7 @@ func main() { &GreetService{}, }, Assets: application.AssetOptions{ - FS: assets, + Handler: application.AssetFileServerFS(assets), }, Mac: application.MacOptions{ ApplicationShouldTerminateAfterLastWindowClosed: true,