mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-03 14:57:22 -05:00
23 lines
278 B
Go
23 lines
278 B
Go
package web
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
"net/http"
|
|
)
|
|
|
|
//go:embed assets/*
|
|
//go:embed assets/js/*
|
|
var assets embed.FS
|
|
|
|
// Assets FS
|
|
var Assets http.FileSystem
|
|
|
|
func init() {
|
|
embedFS, err := fs.Sub(assets, "assets")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
Assets = http.FS(embedFS)
|
|
} |