Skip to content

Commit

Permalink
style: replace from ioutil to os
Browse files Browse the repository at this point in the history
  • Loading branch information
tr1v3r committed Apr 10, 2024
1 parent 435433a commit a869c04
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"database/sql"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"path/filepath"
Expand Down Expand Up @@ -567,7 +566,7 @@ func (g *Generator) output(fileName string, content []byte) error {
}
return fmt.Errorf("cannot format file: %w", err)
}
return ioutil.WriteFile(fileName, result, 0640)
return os.WriteFile(fileName, result, 0640)
}

func (g *Generator) pushQueryStructMeta(meta *generate.QueryStructMeta) (*genInfo, error) {
Expand Down

0 comments on commit a869c04

Please sign in to comment.