Files
kopia/internal/server/htmlui_fallback.go
Julio López 7bafe51dcc Replace go-bindata with //go:embed (#844)
* Replace htmlui_fallback.go with go:embed
* Replace go-bindata generated UI with go:embed
* Update site Go version to 1.16
* Update BUILD.md to reflect workflow with go:embed
2021-02-23 01:09:40 -08:00

17 lines
246 B
Go

// +build !embedhtml
package server
import (
"embed"
"net/http"
)
//go:embed index.html
var data embed.FS
// AssetFile return a http.FileSystem instance that data backend by asset.
func AssetFile() http.FileSystem {
return http.FS(data)
}