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"
@@ -89,7 +88,7 @@ func main() {
8988 }
9089
9190 if lifecyclePolicy != "" {
92- p , err := ioutil .ReadFile (lifecyclePolicy )
91+ p , err := os .ReadFile (lifecyclePolicy )
9392 if err != nil {
9493 log .Fatal (err )
9594 }
@@ -99,7 +98,7 @@ func main() {
9998 }
10099
101100 if repositoryPolicy != "" {
102- p , err := ioutil .ReadFile (repositoryPolicy )
101+ p , err := os .ReadFile (repositoryPolicy )
103102 if err != nil {
104103 log .Fatal (err )
105104 }
You can’t perform that action at this time.
0 commit comments