package ui import "io" // Resources is an abstraction on resources. type Resources interface { // FetchResource should fetch the resource with the specified name and return a path (on disk) where the resource can be accessed. FetchResource(name string) (string, error) // OpenResource should open the resource with the specified name. The user is responsible for closing the resource. OpenResource(name string) (io.ReadCloser, error) // Destroy can be used for cleaning up at the end of the applications lifetime. Destroy() error }