Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
fix: go embed complains about no embeddable files
Browse files Browse the repository at this point in the history
  • Loading branch information
guanzo committed Jun 7, 2022
1 parent 1003a34 commit fa288f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ package resources

import "embed"

//go:embed webui
// webui folder is empty during local development, embed resources.go
// so go doesn't complain about "no embeddable files"
//
//go:embed webui resources.go
var WebUI embed.FS

0 comments on commit fa288f0

Please sign in to comment.