diff options
author | Joe <rbo@gmx.us> | 2023-12-19 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2023-12-19 20:20:20 +0100 |
commit | b9a79ec3d1c2dc1b90924477501a4470e57f9c01 (patch) | |
tree | 7d49f94f957beecbccc9b97cd91d8a36b647d914 /c_init.go | |
parent | up (diff) | |
download | hardflip-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.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) } |