summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index adbdf34..f3ec517 100644
--- a/main.go
+++ b/main.go
@@ -6,10 +6,10 @@ import (
"embed"
"flag"
"fmt"
- "io/ioutil"
"log"
"net/http"
"net/netip"
+ "os"
"text/template"
)
@@ -88,7 +88,7 @@ func index(devices DevicesConfig) func(http.ResponseWriter, *http.Request) {
// mustRead() reads a file and panics if this is not possible.
func mustRead(path string) []byte {
- data, err := ioutil.ReadFile(path)
+ data, err := os.ReadFile(path)
if err != nil {
log.Fatalf("Could not read '%s'!", path)
}