Skip to content

Commit

Permalink
replace deprecated ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulexus committed Aug 19, 2022
1 parent 1f96111 commit bff869c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions agenda/agenda.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"crypto/md5"
"encoding/hex"
"fmt"
"io/ioutil"
"os"
"strings"
"time"
Expand All @@ -17,7 +16,7 @@ var fileFormats = []string{"mp3", "m4a", "webm"}

// New attempts to load an agenda from the given filename
func New(filename string) (*Agenda, error) {
data, err := ioutil.ReadFile(filename)
data, err := os.ReadFile(filename)
if err != nil {
return nil, fmt.Errorf("failed to read agenda from file: %w", err)
}
Expand Down

0 comments on commit bff869c

Please sign in to comment.