File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 55 "encoding/json"
66 "fmt"
77 "io"
8- "io/ioutil"
98 "os"
109 "os/exec"
1110 "path"
@@ -60,7 +59,7 @@ func writeCard(path string, card interface{}) {
6059 case path == "/dev/stderr" :
6160 writeCardTo (os .Stderr , data )
6261 case path != "" :
63- ioutil .WriteFile (path , data , 0644 )
62+ os .WriteFile (path , data , 0644 )
6463 }
6564}
6665
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package main
33import (
44 "encoding/base64"
55 "fmt"
6- "io/ioutil"
76 "log"
87 "os"
98 "os/exec"
@@ -88,7 +87,7 @@ func main() {
8887 }
8988
9089 if lifecyclePolicy != "" {
91- p , err := ioutil .ReadFile (lifecyclePolicy )
90+ p , err := os .ReadFile (lifecyclePolicy )
9291 if err != nil {
9392 log .Fatal (err )
9493 }
@@ -98,7 +97,7 @@ func main() {
9897 }
9998
10099 if repositoryPolicy != "" {
101- p , err := ioutil .ReadFile (repositoryPolicy )
100+ p , err := os .ReadFile (repositoryPolicy )
102101 if err != nil {
103102 log .Fatal (err )
104103 }
You can’t perform that action at this time.
0 commit comments