mirror of
https://github.com/kopia/kopia.git
synced 2026-01-24 22:38:00 -05:00
* 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
17 lines
246 B
Go
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)
|
|
}
|