Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func From ¶
From creates a new FS from an fs.FS.
For paths like `c:/foo/bar`, fsys will be used as though it's rooted at `/` and the path is `/c:/foo/bar`.
If the provided fs.FS implements RealpathFS, it will be used to implement the Realpath method. If the provided fs.FS implements WritableFS, it will be used to implement the WriteFile method.
From does not actually handle case-insensitivity; ensure the passed in fs.FS respects case-insensitive file names if needed. Consider using [vfstest.FromMap] for testing.
Types ¶
Click to show internal directories.
Click to hide internal directories.