From 8405a8d01bbfb0e05cc114d561a1d5d55a500050 Mon Sep 17 00:00:00 2001 From: David Ashby Date: Sat, 3 May 2025 13:46:20 -0400 Subject: [PATCH] remove deprecated ioutil module --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index ed63160..76a8ffe 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,6 @@ import ( "fmt" "image" "io" - "io/ioutil" "os" "os/exec" "path/filepath" @@ -98,7 +97,7 @@ func run() error { if err := tpl.Execute(fplist, info); err != nil { return errors.Wrap(err, "execute Info.plist template") } - if err := ioutil.WriteFile(filepath.Join(contentsPath, "README"), []byte(readme), 0666); err != nil { + if err := os.WriteFile(filepath.Join(contentsPath, "README"), []byte(readme), 0666); err != nil { return errors.Wrap(err, "ioutil.WriteFile") } return nil