Files
volumen/internal/web/static.go
T

17 lines
380 B
Go
Raw Normal View History

2026-09-18 12:03:35 +02:00
// Copyright (c) 2026 Petr Balvín <opensource@petrbalvin.org> (https://petrbalvin.org)
// SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
package web
import (
"embed"
)
//go:embed static/*.svg
var staticFS embed.FS
// StaticFile returns a packaged static asset by file name.
func StaticFile(name string) ([]byte, error) {
return staticFS.ReadFile("static/" + name)
}