diff options
-rw-r--r-- | main.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) } |