Skip to content

Commit

Permalink
style: "io/ioutil" has been deprecated since Go 1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
jhutar committed May 21, 2024
1 parent 318866b commit 4341cdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/load-tests/pkg/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package options

import "encoding/json"
import "fmt"
import "io/ioutil"
import "os"
import "time"

// Struct to hold command line options
Expand Down Expand Up @@ -57,7 +57,7 @@ func (o *Opts) ProcessOptions() error {
}

// Dump options to JSON file in putput directory for refference
err3 := ioutil.WriteFile(o.OutputDir + "/load-test-options.json", jsonOptions, 0644)
err3 := os.WriteFile(o.OutputDir + "/load-test-options.json", jsonOptions, 0644)
if err3 != nil {
return fmt.Errorf("Error writing to file:", err3)

Check failure on line 62 in tests/load-tests/pkg/options/options.go

View workflow job for this annotation

GitHub Actions / lint

printf: fmt.Errorf call has arguments but no formatting directives (govet)
}
Expand Down

0 comments on commit 4341cdb

Please sign in to comment.