aboutsummaryrefslogtreecommitdiffhomepage
path: root/commands/server.go
diff options
context:
space:
mode:
authorOleksandr Redko <[email protected]>2023-05-23 17:55:26 +0300
committerBjørn Erik Pedersen <[email protected]>2023-06-01 17:52:21 +0200
commit4c46f9400b91a205361210e8eb0c1718784ec8f2 (patch)
tree4f560a8d1c4f549b413acf4660812a4477da37a2 /commands/server.go
parent8c7a4e995bbc8e9781b3765c2c6e3c3ae806c200 (diff)
downloadhugo-4c46f9400b91a205361210e8eb0c1718784ec8f2.tar.gz
hugo-4c46f9400b91a205361210e8eb0c1718784ec8f2.zip
all: Replace deprecated ioutil with io and os
Diffstat (limited to 'commands/server.go')
-rw-r--r--commands/server.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/server.go b/commands/server.go
index c878cac2f..048b13ba3 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -20,7 +20,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net"
"net/http"
"net/url"
@@ -848,7 +847,7 @@ func (c *serverCommand) serve() error {
if err != nil {
return err
}
- err = ioutil.WriteFile(readyFile, b, 0777)
+ err = os.WriteFile(readyFile, b, 0777)
if err != nil {
return err
}