Replace deprecated io/ioutils (#230)

This commit is contained in:
Manuel Rüger
2023-01-03 18:54:04 +01:00
committed by GitHub
parent f4bbbb19ca
commit 3e558ac2e3
8 changed files with 17 additions and 20 deletions

View File

@@ -3,7 +3,6 @@ package main
import (
"bytes"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"time"
@@ -175,7 +174,7 @@ func processFile(
pageID string,
username string,
) *confluence.PageInfo {
markdown, err := ioutil.ReadFile(file)
markdown, err := os.ReadFile(file)
if err != nil {
log.Fatal(err)
}