mirror of
https://github.com/kopia/kopia.git
synced 2026-01-05 13:07:53 -05:00
- upgrade to golangci-lint 2.6.1 - updates for gosec - updates for govet - updates for perfsprint - updates modernize Leaves out modernize:omitempty due to conflicts with tests
17 lines
245 B
Go
17 lines
245 B
Go
//go:build nohtmlui
|
|
|
|
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)
|
|
}
|