Documentation ¶
Index ¶
- type FileAccess
- type FileIO
- func (f *FileIO) GetWorkingDirectory() (string, error)
- func (f *FileIO) IsDir(path string) (bool, error)
- func (f *FileIO) MkDir(path string) error
- func (f *FileIO) Read(path string) ([]byte, error)
- func (f *FileIO) ReadAndTag(path string) (*TaggedBytes, error)
- func (f *FileIO) RemoveAll(dir string) error
- func (f *FileIO) ResolveRelativeFrom(targetFile string, sourceFile string) (string, error)
- func (f *FileIO) ResolveRelativeFromWD(targetFile string) (string, error)
- func (f *FileIO) ResolveRelativeTo(targetFile string, sourceFile string) (string, error)
- func (f *FileIO) TempDir(dir string, prefix string) (string, error)
- func (f *FileIO) Walk(path string, callback func(path string, info os.FileInfo, err error) error) error
- func (f *FileIO) Write(path string, content []byte, perms os.FileMode) error
- type TaggedBytes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileAccess ¶
type FileAccess interface { Read(path string) ([]byte, error) ReadAndTag(path string) (*TaggedBytes, error) Write(path string, content []byte, perms os.FileMode) error TempDir(dir string, prefix string) (string, error) RemoveAll(dir string) error ResolveRelativeTo(targetFile string, sourceFile string) (string, error) ResolveRelativeFrom(targetFile string, sourceFile string) (string, error) ResolveRelativeFromWD(targetFile string) (string, error) GetWorkingDirectory() (string, error) IsDir(path string) (bool, error) Walk(path string, callback func(path string, info os.FileInfo, err error) error) error MkDir(path string) error }
type FileIO ¶
type FileIO struct{}
func (*FileIO) GetWorkingDirectory ¶ added in v1.0.3
func (*FileIO) ReadAndTag ¶ added in v1.0.2
func (f *FileIO) ReadAndTag(path string) (*TaggedBytes, error)
func (*FileIO) ResolveRelativeFrom ¶ added in v1.0.3
func (*FileIO) ResolveRelativeFromWD ¶ added in v1.0.3
func (*FileIO) ResolveRelativeTo ¶
type TaggedBytes ¶ added in v1.0.2
Click to show internal directories.
Click to hide internal directories.