Implement resource loading feature

This commit is contained in:
2022-08-29 14:43:16 -07:00
parent 4845a33a25
commit 986513750f
4 changed files with 184 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ var (
ErrOffsetChanged = errors.New("offset has already been changed")
ErrReadOpen = errors.New("only one file can be opened for reading at a time")
ErrWriteOpen = errors.New("only one file can be opened for writing at a time")
ErrNoRemoveRoot = errors.New("refusing to remove root directory")
)
// FSError represents an error returned by BLE FS

View File

@@ -12,4 +12,4 @@ func (iofs goFS) Open(path string) (fs.File, error) {
func (blefs *FS) GoFS() fs.FS {
return goFS{blefs}
}
}