diff --git a/agenda/agenda.go b/agenda/agenda.go index 9e9affe..f649304 100644 --- a/agenda/agenda.go +++ b/agenda/agenda.go @@ -4,7 +4,6 @@ import ( "crypto/md5" "encoding/hex" "fmt" - "io/ioutil" "os" "strings" "time" @@ -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) }