diff options
Diffstat (limited to '')
-rw-r--r-- | forged/internal/embed/embed.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/forged/internal/embed/embed.go b/forged/internal/embed/embed.go new file mode 100644 index 0000000..1f0dcdf --- /dev/null +++ b/forged/internal/embed/embed.go @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org> + +// Package embed provides embedded filesystems created in build-time. +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 |