From 32c454ba5faea9dc4236c12e28e0b65f01117cc1 Mon Sep 17 00:00:00 2001 From: Michael Li Date: Thu, 17 Mar 2022 14:05:09 +0800 Subject: assets: convert usage of go-bindata to Go embed (#6851) Co-authored-by: Joe Chen --- public/embed.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 public/embed.go (limited to 'public/embed.go') 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 -- cgit v1.2.3