forked from Ivasoft/traefik
Replace go-bindata with Go embed
Co-authored-by: nrwiersma <nick@wiersma.co.za>
This commit is contained in:
12
webui/embed.go
Normal file
12
webui/embed.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package webui
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"io/fs"
|
||||
)
|
||||
|
||||
//go:embed static
|
||||
var assets embed.FS
|
||||
|
||||
// FS contains the web UI assets.
|
||||
var FS, _ = fs.Sub(assets, "static")
|
||||
Reference in New Issue
Block a user