Implement resource loading feature
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -12,4 +12,4 @@ func (iofs goFS) Open(path string) (fs.File, error) {
|
||||
|
||||
func (blefs *FS) GoFS() fs.FS {
|
||||
return goFS{blefs}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user