aboutsummaryrefslogtreecommitdiffstats
path: root/c_init.go
diff options
context:
space:
mode:
Diffstat (limited to 'c_init.go')
-rw-r--r--c_init.go3
1 files changed, 1 insertions, 2 deletions
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)
}