main.go | 5 ++--- diff --git a/main.go b/main.go index e31ae19cbf3839f45cbc5b095e29d3b45a814677..365895dc1cd03a1918ae313282c155e166d7f6bf 100644 --- a/main.go +++ b/main.go @@ -26,7 +26,6 @@ "flag" "fmt" "html/template" "io" - "io/ioutil" "log" "mime" "net" @@ -167,14 +166,14 @@ var commentLines []string p, err = mr.NextPart() if err == nil && p.FormName() == CommentFieldName { - comment, err := ioutil.ReadAll(p) + comment, err := io.ReadAll(p) if err == nil && len(comment) > 0 { commentLines = strings.Split(string(comment), "\n") wr.WriteFieldMultiline("Comment", commentLines) } } - ioutil.WriteFile(tai+".rec", rec.Bytes(), os.FileMode(0666)) + os.WriteFile(tai+".rec", rec.Bytes(), os.FileMode(0666)) if *NotifyToAddr == "" { return }