package aferores import ( "io" "github.com/spf13/afero" "opslag.de/schobers/zntg/ui" ) type aferoResources struct { afero.Fs } var _ ui.Resources = &aferoResources{} // New provides resources from a afero file system. func New(fs afero.Fs) ui.Resources { return &aferoResources{fs} } func (r *aferoResources) Destroy() error { return nil } func (r *aferoResources) OpenResource(name string) (io.ReadCloser, error) { return r.Fs.Open(name) }