ffuff/pkg/ffuf
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
..
config.go Add support for configuration files for ffuf (#308) 2020-09-27 19:24:06 +03:00
const.go Prepare 1.2.0-git (#268) 2020-07-23 13:49:27 +03:00
interfaces.go Recursive jobs support (#129) 2019-12-31 14:19:27 +02:00
job.go pkg: handle gosimple linter findings (#322) 2020-10-03 10:45:07 +03:00
multierror.go Get rid of the last external dependency 2018-11-15 00:18:43 +02:00
optionsparser.go pkg: handle gosimple linter findings (#322) 2020-10-03 10:45:07 +03:00
optrange.go Write configuration to output JSON (#135) 2020-01-07 18:27:43 +02:00
progress.go Throttle rate of requests per second (#287) 2020-08-30 13:51:41 +03:00
rate.go Throttle rate of requests per second (#287) 2020-08-30 13:51:41 +03:00
request.go Add Host information to JSON output file (#223) 2020-04-23 00:53:28 +03:00
response.go Fix crash with 3xx requests without location header (#265) 2020-07-23 13:13:27 +03:00
util.go pkg: handle gosimple linter findings (#322) 2020-10-03 10:45:07 +03:00
valuerange.go Added support for using ranges in size, word count or status code matching/filtering (#47) 2019-06-27 18:26:19 +03:00