Versions in this module Expand all Collapse all v2 v2.3.0 Oct 31, 2024 v2.2.1 Oct 29, 2024 Changes in this version + type FileSystem struct + Fs afero.Fs + func NewFileSystem(fs afero.Fs) *FileSystem + func (s *FileSystem) AddFile(filename string) error + func (s *FileSystem) CreateDirectoryIfNotExists(path string) error + func (s *FileSystem) CreateFile(filename string) (afero.File, error) + func (s *FileSystem) CreateFileIfNotExists(filename string) (afero.File, error) + func (s *FileSystem) GetAferoFs() afero.Fs + func (s *FileSystem) ReadDir(path string) ([]string, error) + func (s *FileSystem) ReadFile(filePath string) (string, error) + func (s *FileSystem) ReadFileFromURL(url string) (string, error) + func (s *FileSystem) WriteFile(filename string, content string) error + type FileSystemInterface interface + CreateDirectoryIfNotExists func(path string) error + CreateFile func(filename string) (afero.File, error) + CreateFileIfNotExists func(filename string) (afero.File, error) + GetAferoFs func() afero.Fs + ReadDir func(path string) ([]string, error) + ReadFile func(filePath string) (string, error) + ReadFileFromURL func(url string) (string, error) + WriteFile func(filename string, content string) error