Documentation ¶
Index ¶
- Constants
- type FS
- func (m *FS) AddFS(p fs.FS)
- func (m *FS) Clean(loc string) string
- func (m FS) Glob(pattern string) ([]string, error)
- func (m *FS) InsertFS(p fs.FS, priority int)
- func (m FS) Open(name string) (fs.File, error)
- func (m FS) ReadDir(name string) ([]fs.DirEntry, error)
- func (m FS) ReadFile(name string) ([]byte, error)
- func (m *FS) RemoveFS(p fs.FS) bool
- func (m FS) Stat(name string) (fs.FileInfo, error)
- func (m *FS) Walk(path string, walkFn fs.WalkDirFunc) (err error)
Constants ¶
const ( FirstPriority = 0 LastPriority = -1 )
These are our priorities.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS is a container for multiple fs.FS conforming items.
func (FS) Glob ¶
Glob returns the names of all files matching pattern, providing an implementation of the top-level Glob function.
func (*FS) InsertFS ¶
InsertFS adds the given FS to the filesystems list with a given priority. If priority is FirstPriority, it is added to the beginning of the filesystems list. If it is LastPriority, it is added at the end of the filesystems list. Other priority values will be treated as indices to insert at. If the priority is beyond the length of filesystems, it will be added to the end of the filesystems list.
func (FS) ReadDir ¶
ReadDir reads the named directory and returns a list of directory entries sorted by filename.