Replace go-bindata with Go embed
Co-authored-by: nrwiersma <nick@wiersma.co.za>
This commit is contained in:
parent
7ff13c3e3e
commit
70359e5d27
27 changed files with 142 additions and 205 deletions
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")
|
Loading…
Add table
Add a link
Reference in a new issue