package embedres import ( "embed" "io" "opslag.de/schobers/zntg/ui" ) var _ ui.Resources = &resources{} type resources struct { fs embed.FS } func New(fs embed.FS) ui.Resources { return &resources{fs} } func (r resources) Destroy() error { return nil } func (r resources) OpenResource(name string) (io.ReadCloser, error) { return r.fs.Open(name) }