diff options
author | Alan Pearce | 2024-05-10 23:05:24 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-10 23:05:24 +0200 |
commit | 3bbb49e74b8eab7714c2df1162d086f6d731e1e8 (patch) | |
tree | e655ba63d3eca271aad33107796d49400ed11215 /frontend | |
parent | 00eb7541d54e76f8b55fe499d6955786927b207b (diff) | |
download | searchix-3bbb49e74b8eab7714c2df1162d086f6d731e1e8.tar.lz searchix-3bbb49e74b8eab7714c2df1162d086f6d731e1e8.tar.zst searchix-3bbb49e74b8eab7714c2df1162d086f6d731e1e8.zip |
build: optionally embed frontend files
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/dev.go | 9 | ||||
-rw-r--r-- | frontend/embedded.go | 8 |
2 files changed, 17 insertions, 0 deletions
diff --git a/frontend/dev.go b/frontend/dev.go new file mode 100644 index 0000000..6cde8a5 --- /dev/null +++ b/frontend/dev.go @@ -0,0 +1,9 @@ +//go:build !embed + +package frontend + +import ( + "os" +) + +var Files = os.DirFS("frontend/") diff --git a/frontend/embedded.go b/frontend/embedded.go new file mode 100644 index 0000000..5310d65 --- /dev/null +++ b/frontend/embedded.go @@ -0,0 +1,8 @@ +//go:build embed + +package frontend + +import "embed" + +//go:embed * +var Files embed.FS |