diff options
author | KallyDev <[email protected]> | 2021-09-30 01:17:48 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-09-29 11:17:48 -0600 |
commit | c48fadc4a7655008d13076c7f757c36368e2ca13 (patch) | |
tree | 3fe2837e02e9b664dd5b86afbe42494ac20997f8 /admin.go | |
parent | 059fc32f002d00e980b438b3edbdf7b8bcdf9a90 (diff) | |
download | caddy-c48fadc4a7655008d13076c7f757c36368e2ca13.tar.gz caddy-c48fadc4a7655008d13076c7f757c36368e2ca13.zip |
Move from deprecated ioutil to os and io packages (#4364)
Diffstat (limited to 'admin.go')
-rw-r--r-- | admin.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -26,7 +26,6 @@ import ( "expvar" "fmt" "io" - "io/ioutil" "net" "net/http" "net/http/pprof" @@ -1202,7 +1201,7 @@ var ( // will get deleted before the process gracefully exits. func PIDFile(filename string) error { pid := []byte(strconv.Itoa(os.Getpid()) + "\n") - err := ioutil.WriteFile(filename, pid, 0600) + err := os.WriteFile(filename, pid, 0600) if err != nil { return err } |