func (w *WordlistInput) Next() bool {
	return w.position < len(w.data)
}
Next will increment the cursor position, and return a boolean telling if there's words left in the list
package input
import (
	"bufio"
	"os"
	"regexp"
	"strings"
	"github.com/ffuf/ffuf/pkg/ffuf"
)
type WordlistInput struct {
	config   *ffuf.Config
	data     [][]byte
	position int
	keyword  string
}
func NewWordlistInput(keyword string, value string, conf *ffuf.Config) (*WordlistInput, error) {
	var wl WordlistInput
	wl.keyword = keyword
	wl.config = conf
	wl.position = 0
	var valid bool
	var err error
	if value == "-" {
		valid = true
	} else {
		valid, err = wl.validFile(value)
	}
	if err != nil {
		return &wl, err
	}
	if valid {
		err = wl.readFile(value)
	}
	return &wl, err
}
func (w *WordlistInput) Position() int {
	return w.position
}
func (w *WordlistInput) ResetPosition() {
	w.position = 0
}
func (w *WordlistInput) Keyword() string {
	return w.keyword
}