infinitime/blefs/iofs.go

15 lines
195 B
Go
Raw Normal View History

2021-12-12 21:25:40 +00:00
package blefs
import "io/fs"
type goFS struct {
*FS
}
func (iofs goFS) Open(path string) (fs.File, error) {
return iofs.FS.Open(path)
}
func (blefs *FS) GoFS() fs.FS {
return goFS{blefs}
}