mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-29 22:23:02 +00:00
15 lines
379 B
Go
15 lines
379 B
Go
|
|
package catalogue
|
||
|
|
|
||
|
|
// Catalogue is a template catalouge helper implementation
|
||
|
|
type Catalogue struct {
|
||
|
|
ignoreFiles []string
|
||
|
|
templatesDirectory string
|
||
|
|
}
|
||
|
|
|
||
|
|
// New creates a new catalogue structure using provided input items
|
||
|
|
func New(directory string) *Catalogue {
|
||
|
|
catalogue := &Catalogue{templatesDirectory: directory}
|
||
|
|
catalogue.readNucleiIgnoreFile()
|
||
|
|
return catalogue
|
||
|
|
}
|