ffuf/pkg/input
M. Ángel Jimeno 19937c4929
pkg: handle gosimple linter findings (#322)
This change is an attempt to handle gosimple linter finfings in order to
make the code easier to follow. It includes the following changes:

- use strings.Contains instead of strings.Index != -1
- use time.Since which is the standard library helper. See https://github.com/golang/go/blob/go1.15.2/src/time/time.go#L866-L867
- remove unneeded return statements at the end of methods
- preallocate maps when their capacity is known
- avoid underscoring values when they can be omitted
- avoid fmt.Sprintf() calls when the only argument is already a string

Signed-off-by: Miguel Ángel Jimeno <miguelangel4b@gmail.com>
2020-10-03 10:45:07 +03:00
..
command.go pkg: handle gosimple linter findings (#322) 2020-10-03 10:45:07 +03:00
const.go New input provider --input-cmd (#40) 2019-06-17 00:42:42 +03:00
const_windows.go New input provider --input-cmd (#40) 2019-06-17 00:42:42 +03:00
input.go Add support for configuration files for ffuf (#308) 2020-09-27 19:24:06 +03:00
wordlist.go pkg: handle gosimple linter findings (#322) 2020-10-03 10:45:07 +03:00