aboutsummaryrefslogtreecommitdiff
path: root/public/embed.go
diff options
context:
space:
mode:
authorMichael Li <alimy@gility.net>2022-03-17 14:05:09 +0800
committerGitHub <noreply@github.com>2022-03-17 14:05:09 +0800
commit32c454ba5faea9dc4236c12e28e0b65f01117cc1 (patch)
tree1eea30a83f78b311983924ba3bab00884633f508 /public/embed.go
parent39f64a1371cdb01e02aeeb04839d2689052ae1d3 (diff)
assets: convert usage of go-bindata to Go embed (#6851)
Co-authored-by: Joe Chen <jc@unknwon.io>
Diffstat (limited to 'public/embed.go')
-rw-r--r--public/embed.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/public/embed.go b/public/embed.go
new file mode 100644
index 00000000..7abd2322
--- /dev/null
+++ b/public/embed.go
@@ -0,0 +1,12 @@
+// Copyright 2022 The Gogs Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
+package public
+
+import (
+ "embed"
+)
+
+//go:embed assets/* css/* img/* js/* plugins/*
+var Files embed.FS