ffuff/pkg/output
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
..
const_windows.go Colors 2018-11-09 15:21:23 +02:00
const.go Colors 2018-11-09 15:21:23 +02:00
file_csv.go pkg: handle gosimple linter findings (#322) 2020-10-03 10:45:07 +03:00
file_html.go Increase default rows per page on html report (#217) 2020-04-19 12:04:33 +03:00
file_json.go Add Host information to JSON output file (#223) 2020-04-23 00:53:28 +03:00
file_md.go Write requests and responses to filesystem if requested (#126) 2019-12-28 17:46:44 +02:00
output.go Initial commit, v0.1 2018-11-08 11:26:32 +02:00
stdout.go pkg: handle gosimple linter findings (#322) 2020-10-03 10:45:07 +03:00