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,