aboutsummaryrefslogtreecommitdiffstats
path: root/c_init.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2023-12-19 20:20:20 +0100
committerJoe <rbo@gmx.us>2023-12-19 20:20:20 +0100
commitb9a79ec3d1c2dc1b90924477501a4470e57f9c01 (patch)
tree7d49f94f957beecbccc9b97cd91d8a36b647d914 /c_init.go
parentup (diff)
downloadhardflip-b9a79ec3d1c2dc1b90924477501a4470e57f9c01.tar.gz
hardflip-b9a79ec3d1c2dc1b90924477501a4470e57f9c01.tar.bz2
hardflip-b9a79ec3d1c2dc1b90924477501a4470e57f9c01.tar.xz
hardflip-b9a79ec3d1c2dc1b90924477501a4470e57f9c01.tar.zst
hardflip-b9a79ec3d1c2dc1b90924477501a4470e57f9c01.zip
go
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)
}