Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultIgnoredFolders = []string{"vendor", ".git", "node_modules", ".idea", "_fixtures"}
Functions ¶
func IsProspect ¶
Types ¶
type Box ¶
type Box struct { Name string // name of the box Path string // relative path of folder NewBox("./templates") AbsPath string // absolute path of Path Package string // the package name the box was found in PWD string // the PWD when the parser was run PackageDir string // the absolute path of the package where the box was found }
Box found while parsing a file
type File ¶
File that is to be parsed
type Parser ¶
Parser to find boxes
func NewFromRoots ¶
func NewFromRoots(roots []string, opts *RootsOptions) (*Parser, error)
NewFromRoots scans the file roots provided and returns a new Parser containing the prospects
type RootsOptions ¶
func (RootsOptions) String ¶
func (r RootsOptions) String() string
type Visitor ¶
func NewVisitor ¶
Click to show internal directories.
Click to hide internal directories.