diff --git a/factory_examples_test.go b/factory_examples_test.go index b4dabd1..2ace3b4 100644 --- a/factory_examples_test.go +++ b/factory_examples_test.go @@ -5,7 +5,7 @@ package touchstone import ( "fmt" - "io/ioutil" + "io" "log" "github.com/prometheus/client_golang/prometheus" @@ -16,7 +16,7 @@ import ( func ExampleFactory() { var f *Factory _ = fx.New( - fx.Logger(log.New(ioutil.Discard, "", 0)), + fx.Logger(log.New(io.Discard, "", 0)), Provide(), fx.Populate(&f), ) diff --git a/fx_examples_test.go b/fx_examples_test.go index 4e53361..130a038 100644 --- a/fx_examples_test.go +++ b/fx_examples_test.go @@ -5,7 +5,7 @@ package touchstone import ( "fmt" - "io/ioutil" + "io" "log" "github.com/prometheus/client_golang/prometheus" @@ -21,7 +21,7 @@ func Example() { } _ = fx.New( - fx.Logger(log.New(ioutil.Discard, "", 0)), + fx.Logger(log.New(io.Discard, "", 0)), fx.Supply( // this Config instance can come from anywhere Config{