Skip to content

Commit

Permalink
chore: cleanup lint checks for ioutil usage (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
obs-gh-catherman authored Oct 15, 2024
1 parent 976d216 commit 9beed2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions mustache.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"reflect"
"strings"
)
Expand Down Expand Up @@ -490,7 +489,7 @@ func (t *Template) Option(options ...Option) {
// Parse parses a stream of bytes read from r and creates a parse tree that
// represents the template.
func (t *Template) Parse(r io.Reader) error {
b, err := ioutil.ReadAll(r)
b, err := io.ReadAll(r)
if err != nil {
return err
}
Expand Down
3 changes: 1 addition & 2 deletions spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
Expand All @@ -33,7 +32,7 @@ type Spec struct {
var specs = make(map[string]Spec)

func init() {
files, err := ioutil.ReadDir(specDir)
files, err := os.ReadDir(specDir)
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 9beed2f

Please sign in to comment.