Skip to content

Commit 9818f46

Browse files
committed
chore: replace ioutil with os. [-]
As of the release of Go 1.16 ioutil was deprecated. (go.dev)[https://go.dev/doc/go1.16#ioutil]
1 parent cd43844 commit 9818f46

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

codegen/codegen.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package codegen
33
import (
44
"fmt"
55
"github.com/shpota/goxygen/static"
6-
"io/ioutil"
76
"log"
87
"os"
98
"os/exec"
@@ -54,7 +53,7 @@ func (g generator) processFile(path string, content []byte) {
5453
os.ModePerm,
5554
)
5655
fmt.Println("creating: " + strings.Join(pathElements, separator))
57-
err := ioutil.WriteFile(
56+
err := os.WriteFile(
5857
strings.Join(pathElements, separator),
5958
content,
6059
0644,

0 commit comments

Comments
 (0)