From 1bc4e7869a0289d819610823bb92e53afe376339 Mon Sep 17 00:00:00 2001 From: coward Date: Wed, 5 Jun 2024 12:07:59 +0800 Subject: [PATCH] :art: --- .gitignore | 11 +++++++++-- web/static.go | 6 ++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 web/static.go diff --git a/.gitignore b/.gitignore index 498e164..ed1293a 100644 --- a/.gitignore +++ b/.gitignore @@ -19,7 +19,15 @@ # vendor/ .idea logs -web +web/assets +web/static +web/*.ico +web/*.gz +web/*.br +web/*.html +web/*.svg +web/*.json + # Go workspace file go.work @@ -27,4 +35,3 @@ wg.db wg0.conf *.db *.yaml - diff --git a/web/static.go b/web/static.go new file mode 100644 index 0000000..7de0a58 --- /dev/null +++ b/web/static.go @@ -0,0 +1,6 @@ +package web + +import "embed" + +//go:embed index.html logo.svg favicon.ico platform-config.json static assets +var Static embed.FS