From b9a79ec3d1c2dc1b90924477501a4470e57f9c01 Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 19 Dec 2023 20:20:20 +0100 Subject: go --- c_init.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'c_init.go') diff --git a/c_init.go b/c_init.go index e06084b..5454928 100644 --- a/c_init.go +++ b/c_init.go @@ -49,7 +49,6 @@ package main import ( "fmt" - "io/ioutil" "os" "path/filepath" ) @@ -85,7 +84,7 @@ func c_get_data_dir() string { // this function recurses into the specified root directory in order to load // every yaml file into memory func c_recurse_data_dir(dir string, root string, lhost *HostList) { - files, err := ioutil.ReadDir(root + dir) + files, err := os.ReadDir(root + dir) if err != nil { c_die("could not read data directory", err) } -- cgit v1.2.3