mirror of
https://github.com/kopia/kopia.git
synced 2026-01-27 07:48:06 -05:00
* 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>
18 lines
388 B
Go
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")
|
|
}
|