Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdapterFile ¶
type AdapterFile interface {
FilePath() string
}
type File ¶
func (*File) ParseAndSave ¶
func (fa *File) ParseAndSave(f AdapterFile) error
It utilizes os.Create and file.Write methods. Any occuring error will be returned directly. Same goes for Parser errors.
func (*File) ReadAndParse ¶
func (fa *File) ReadAndParse(f AdapterFile) error
It utilizes os.ReadFile method. Any error occurs will be returned untouched.
type FileAdapter ¶
type FileAdapter interface { ParseAndSave(f AdapterFile) error ReadAndParse(f AdapterFile) error }
Click to show internal directories.
Click to hide internal directories.