ffuf/pkg/input/input.go

15 lines
277 B
Go
Raw Normal View History

2018-11-08 09:26:32 +00:00
package input
import (
"github.com/ffuf/ffuf/pkg/ffuf"
)
func NewInputProviderByName(name string, conf *ffuf.Config) (ffuf.InputProvider, error) {
if name == "command" {
return NewCommandInput(conf)
} else {
// Default to wordlist
return NewWordlistInput(conf)
}
2018-11-08 09:26:32 +00:00
}