Documentation
¶
Index ¶
- type Reader
- func (r *Reader) AddDir(foldername string) *Reader
- func (r *Reader) AddDirRecursively(dirname string) *Reader
- func (r *Reader) AddFiles(filenames ...string) *Reader
- func (r *Reader) AddSource(filename string, source string) *Reader
- func (r *Reader) BasePath() string
- func (r *Reader) Filenames() []string
- func (r *Reader) FilterFilenames(matcher filter.Matcher) *Reader
- func (r *Reader) Read() *data.Project
- func (r *Reader) SetBasePath(basePath string) *Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader is the information used to setup how the reader will run and the data to run inside the reader.
func (*Reader) AddDirRecursively ¶
AddDirRecursively adds all the files in the given directory and all the files in all children folders.
func (*Reader) AddSource ¶
AddSource adds a string of source code to read directly. The filename is used to identify this source code string.
func (*Reader) Filenames ¶
Filenames get the list of filenames that have been set to this reader and should be processed when started.
func (*Reader) FilterFilenames ¶
FilterFilenames will remove all the filenames and paired sources which match the given handler. If the matcher returns true the file is removed.
func (*Reader) SetBasePath ¶
SetBasePath is the base path to use while reading the data.