Skip to content

Commit

Permalink
Merge pull request #42 from isimluk/bump-go
Browse files Browse the repository at this point in the history
bump minimal go version to 1.19
  • Loading branch information
isimluk authored Mar 11, 2024
2 parents 8f600a2 + 8129b7b commit bc90355
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/gocomply/metaschema

go 1.18
go 1.21

require (
github.com/iancoleman/strcase v0.3.0
Expand Down
3 changes: 1 addition & 2 deletions metaschema/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"encoding/xml"
"fmt"
"io"
"io/ioutil"
"os"
"strings"

Expand All @@ -13,7 +12,7 @@ import (
)

func Generate(metaschemaDir, goModule, outputDir string) error {
files, err := ioutil.ReadDir(metaschemaDir)
files, err := os.ReadDir(metaschemaDir)
if err != nil {
return err
}
Expand Down
4 changes: 2 additions & 2 deletions metaschema/templates/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"fmt"
"go/format"
"io/ioutil"
"io"
"os"
"path/filepath"
"strings"
Expand Down Expand Up @@ -81,7 +81,7 @@ func newTemplate(baseDir, templateName string) (*template.Template, error) {
}
defer in.Close()

tempText, err := ioutil.ReadAll(in)
tempText, err := io.ReadAll(in)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit bc90355

Please sign in to comment.