mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-21 11:17:44 +08:00
18 lines
285 B
Go
18 lines
285 B
Go
package jaegerui
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
"net/http"
|
|
|
|
"github.com/tonistiigi/jaeger-ui-rest/decompress"
|
|
)
|
|
|
|
//go:embed public
|
|
var staticFiles embed.FS
|
|
|
|
func FS(cfg Config) http.FileSystem {
|
|
files, _ := fs.Sub(staticFiles, "public")
|
|
return http.FS(decompress.NewFS(files, cfg))
|
|
}
|