mirror of
https://github.com/kovetskiy/mark.git
synced 2026-05-02 05:12:35 +00:00
Replace deprecated io/ioutils (#230)
This commit is contained in:
3
main.go
3
main.go
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user