mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-29 20:33:05 +00:00
19 lines
484 B
Go
19 lines
484 B
Go
package catalog
|
|
|
|
// Catalog is a template catalog helper implementation
|
|
type Catalog struct {
|
|
ignoreFiles []string
|
|
templatesDirectory string
|
|
}
|
|
|
|
// New creates a new Catalog structure using provided input items
|
|
func New(directory string) *Catalog {
|
|
catalog := &Catalog{templatesDirectory: directory}
|
|
return catalog
|
|
}
|
|
|
|
// AppendIgnore appends to the catalog store ignore list.
|
|
func (c *Catalog) AppendIgnore(list []string) {
|
|
c.ignoreFiles = append(c.ignoreFiles, list...)
|
|
}
|