mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 21:17:37 +03:00
* Use new embed functionality for serving UI assets * Use new embed functionality for serving resources. Remove dependency on go-bindata * Remove Go 1.15
14 lines
165 B
Go
14 lines
165 B
Go
package ui
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
)
|
|
|
|
//go:embed build/*
|
|
var filesystem embed.FS
|
|
|
|
func Assets() fs.FS {
|
|
build, _ := fs.Sub(filesystem, "build")
|
|
return build
|
|
}
|