From 656f7b9f06262238fdbb5bbd03decd4cc67142a1 Mon Sep 17 00:00:00 2001 From: Iaroslav Omelianenko Date: Mon, 9 Dec 2024 18:50:49 +0200 Subject: [PATCH] Updated to use `ReadAll` from `io` package. --- neat/neat_options_readers.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neat/neat_options_readers.go b/neat/neat_options_readers.go index b327c7c..0764431 100644 --- a/neat/neat_options_readers.go +++ b/neat/neat_options_readers.go @@ -7,7 +7,6 @@ import ( "github.com/yaricom/goNEAT/v4/neat/math" "gopkg.in/yaml.v3" "io" - "io/ioutil" "os" "strconv" "strings" @@ -15,7 +14,7 @@ import ( // LoadYAMLOptions is to load NEAT options encoded as YAML file func LoadYAMLOptions(r io.Reader) (*Options, error) { - content, err := ioutil.ReadAll(r) + content, err := io.ReadAll(r) if err != nil { return nil, err }