aboutsummaryrefslogtreecommitdiff
path: root/static/static.go
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-07-19 21:13:34 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-07-19 21:13:34 +0200
commit049b9acbd9635c206f5eeb01074b5d63803c4cd5 (patch)
treefe2caacb21445edcb93f13ab73ed5f0d1430c65a /static/static.go
parentb8b6d3037c524575f140650ac243c16df6a98a92 (diff)
downloadlens-049b9acbd9635c206f5eeb01074b5d63803c4cd5.tar.gz
lens-049b9acbd9635c206f5eeb01074b5d63803c4cd5.tar.bz2
lens-049b9acbd9635c206f5eeb01074b5d63803c4cd5.zip
ref: Remove static fs on root
Go embed does allow to load parent folder, so I move static fs to static folder as I think it fits better there than in the root of the project.
Diffstat (limited to 'static/static.go')
-rw-r--r--static/static.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/static/static.go b/static/static.go
new file mode 100644
index 0000000..ada0434
--- /dev/null
+++ b/static/static.go
@@ -0,0 +1,6 @@
+package static
+
+import "embed"
+
+//go:embed *
+var Static embed.FS