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 ¶
func (*FileIO) ReadAndTag ¶
func (f *FileIO) ReadAndTag(path string) (*TaggedBytes, error)
func (*FileIO) ResolveRelativeFrom ¶
func (*FileIO) ResolveRelativeFromWD ¶
func (*FileIO) ResolveRelativeTo ¶
type TaggedBytes ¶
Click to show internal directories.
Click to hide internal directories.