nuclei/v2/pkg/catalog/catalogue.go

15 lines
359 B
Go
Raw Normal View History

2021-02-26 13:13:11 +05:30
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}
catalog.readNucleiIgnoreFile()
return catalog
}