aboutsummaryrefslogtreecommitdiff
path: root/forged/internal/embed/embed.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-06 09:58:02 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-06 09:58:02 +0800
commit6f5e22e764283262ae8c6519bb030766db0fd35b (patch)
treec56038bd7b5dc31d5bae5dd6e323688725c5262e /forged/internal/embed/embed.go
parentFix load ordering issue that causes the forge title to disappear (diff)
downloadforge-6f5e22e764283262ae8c6519bb030766db0fd35b.tar.gz
forge-6f5e22e764283262ae8c6519bb030766db0fd35b.tar.zst
forge-6f5e22e764283262ae8c6519bb030766db0fd35b.zip
Add more documentation comments
Diffstat (limited to 'forged/internal/embed/embed.go')
-rw-r--r--forged/internal/embed/embed.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/forged/internal/embed/embed.go b/forged/internal/embed/embed.go
index c9eeeb3..1f0dcdf 100644
--- a/forged/internal/embed/embed.go
+++ b/forged/internal/embed/embed.go
@@ -6,9 +6,15 @@ package embed
import "embed"
+// Source contains the licenses and source tarballs collected at build time.
+// It is intended to be served to the user.
+//
//go:embed LICENSE* source.tar.gz
var Source embed.FS
+// Resources contains the templates and static files used by the web interface,
+// as well as the git backend daemon and the hookc helper.
+//
//go:embed forged/templates/* forged/static/*
//go:embed hookc/hookc git2d/git2d
var Resources embed.FS