Skip to content

Commit

Permalink
[fix] deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhenry committed Mar 7, 2023
1 parent c2c08d3 commit e1d07fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"flag"
"fmt"
"io/ioutil"
"michaelhenry/envject/parser"
"os"
)


Expand All @@ -16,7 +16,7 @@ func main() {
flag.Parse()

// Load the file contents
fileBytes, err := ioutil.ReadFile(*sourcePath)
fileBytes, err := os.ReadFile(*sourcePath)
if err != nil {
fmt.Println(err)
return
Expand All @@ -35,7 +35,7 @@ func main() {
}

// Write the updated content to the output file
err = ioutil.WriteFile(*outputPath, []byte(updatedContent), 0644)
err = os.WriteFile(*outputPath, []byte(updatedContent), 0644)
if err != nil {
fmt.Println(err)
return
Expand Down

0 comments on commit e1d07fa

Please sign in to comment.