Documentation
¶
Index ¶
- type EmbedFileSystem
- func (fs *EmbedFileSystem) FileExists(path string) bool
- func (fs *EmbedFileSystem) MkdirAll(path string, perm iofs.FileMode) error
- func (fs *EmbedFileSystem) ReadDir(path string) ([]iofs.DirEntry, error)
- func (fs *EmbedFileSystem) ReadFile(path string) ([]byte, error)
- func (fs *EmbedFileSystem) Remove(path string) error
- func (fs *EmbedFileSystem) WriteFile(path string, data []byte, perm iofs.FileMode) error
- type FileSystem
- type OSFileSystem
- func (fs *OSFileSystem) CopyFile(src, dst string) error
- func (fs *OSFileSystem) FileExists(path string) bool
- func (fs *OSFileSystem) MkdirAll(path string, perm iofs.FileMode) error
- func (fs *OSFileSystem) ReadDir(path string) ([]iofs.DirEntry, error)
- func (fs *OSFileSystem) ReadFile(path string) ([]byte, error)
- func (fs *OSFileSystem) Remove(path string) error
- func (fs *OSFileSystem) WalkDir(root string, fn iofs.WalkDirFunc) error
- func (fs *OSFileSystem) WriteFile(path string, data []byte, perm iofs.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmbedFileSystem ¶
type EmbedFileSystem struct {
// contains filtered or unexported fields
}
func NewEmbedFileSystem ¶
func NewEmbedFileSystem(fs embed.FS) *EmbedFileSystem
func (*EmbedFileSystem) FileExists ¶
func (fs *EmbedFileSystem) FileExists(path string) bool
func (*EmbedFileSystem) MkdirAll ¶
func (fs *EmbedFileSystem) MkdirAll(path string, perm iofs.FileMode) error
func (*EmbedFileSystem) ReadDir ¶
func (fs *EmbedFileSystem) ReadDir(path string) ([]iofs.DirEntry, error)
func (*EmbedFileSystem) Remove ¶
func (fs *EmbedFileSystem) Remove(path string) error
type FileSystem ¶
type OSFileSystem ¶
type OSFileSystem struct{}
func NewOSFileSystem ¶
func NewOSFileSystem() *OSFileSystem
func (*OSFileSystem) CopyFile ¶
func (fs *OSFileSystem) CopyFile(src, dst string) error
func (*OSFileSystem) FileExists ¶
func (fs *OSFileSystem) FileExists(path string) bool
func (*OSFileSystem) MkdirAll ¶
func (fs *OSFileSystem) MkdirAll(path string, perm iofs.FileMode) error
func (*OSFileSystem) ReadDir ¶
func (fs *OSFileSystem) ReadDir(path string) ([]iofs.DirEntry, error)
func (*OSFileSystem) Remove ¶
func (fs *OSFileSystem) Remove(path string) error
func (*OSFileSystem) WalkDir ¶
func (fs *OSFileSystem) WalkDir(root string, fn iofs.WalkDirFunc) error
Click to show internal directories.
Click to hide internal directories.