Files
kopia/tests/tools/fio/config.go
Jarek Kowalski 9a6dea898b Linter upgrade to v1.30.0 (#526)
* fixed godot linter errors
* reformatted source with gofumpt
* disabled some linters
* fixed nolintlint warnings
* fixed gci warnings
* lint: fixed 'nestif' warnings
* lint: fixed 'exhaustive' warnings
* lint: fixed 'gocritic' warnings
* lint: fixed 'noctx' warnings
* lint: fixed 'wsl' warnings
* lint: fixed 'goerr113' warnings
* lint: fixed 'gosec' warnings
* lint: upgraded linter to 1.30.0
* lint: more 'exhaustive' warnings

Co-authored-by: Nick <nick@kasten.io>
2020-08-12 19:28:53 -07:00

18 lines
388 B
Go

package fio
import "strings"
// Config structures the fields of a FIO job run configuration.
type Config []Job
// String implements the stringer interface, formats the Config
// as it would appear in a well-formed fio config file.
func (cfg Config) String() string {
ret := []string{}
for _, job := range cfg {
ret = append(ret, job.String())
}
return strings.Join(ret, "\n")
}