Documentation ¶
Index ¶
- type FileSystem
- func (fs *FileSystem) FileExists(filePath string) bool
- func (fs *FileSystem) FileName(path string) string
- func (fs *FileSystem) FileNameWithoutExt(path string) string
- func (fs *FileSystem) GetDirPath(path string) string
- func (fs *FileSystem) ListDir(path string) ([]os.FileInfo, error)
- func (fs *FileSystem) ReadFile(path string) ([]byte, error)
- func (fs *FileSystem) ReadFileMust(path string) []byte
- func (fs *FileSystem) WriteFile(path string, data []byte) error
- func (fs *FileSystem) WriteIfNotExists(path string, data []byte) error
- func (fs *FileSystem) WriteIfNotExistsMust(path string, data []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystem ¶
func NewCWDFileFs ¶
func NewCWDFileFs(subdir string) *FileSystem
func NewFileFs ¶
func NewFileFs(base string) *FileSystem
func NewFs4Tests ¶
func NewFs4Tests() *FileSystem
func (*FileSystem) FileExists ¶
func (fs *FileSystem) FileExists(filePath string) bool
func (*FileSystem) FileName ¶
func (fs *FileSystem) FileName(path string) string
func (*FileSystem) FileNameWithoutExt ¶
func (fs *FileSystem) FileNameWithoutExt(path string) string
func (*FileSystem) GetDirPath ¶
func (fs *FileSystem) GetDirPath(path string) string
func (*FileSystem) ReadFileMust ¶
func (fs *FileSystem) ReadFileMust(path string) []byte
func (*FileSystem) WriteIfNotExists ¶
func (fs *FileSystem) WriteIfNotExists(path string, data []byte) error
func (*FileSystem) WriteIfNotExistsMust ¶
func (fs *FileSystem) WriteIfNotExistsMust(path string, data []byte)
Click to show internal directories.
Click to hide internal directories.