diff options
| author | Shulhan <ms@kilabit.info> | 2023-07-01 19:39:21 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-07-01 19:39:21 +0700 |
| commit | 0365900627623cebc7286641f3ee94385edbccfb (patch) | |
| tree | e4a90168fe0337817ecc3b10bfb55fcac0066940 | |
| parent | becd4a8599352db1379b75a10370da59c1cacf16 (diff) | |
| download | ciigo-0365900627623cebc7286641f3ee94385edbccfb.tar.xz | |
all: replace ioutil.ReadFile with os.ReadFile
The ioutil has been deprecated since Go 1.19.
| -rw-r--r-- | converter.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/converter.go b/converter.go index 58f9974..da78cb4 100644 --- a/converter.go +++ b/converter.go @@ -6,7 +6,6 @@ package ciigo import ( "fmt" "html/template" - "io/ioutil" "log" "os" "path/filepath" @@ -183,7 +182,7 @@ func (converter *Converter) markdownToHtml(fmarkup *FileMarkup) (fhtml *fileHtml parserCtx parser.Context ) - in, err = ioutil.ReadFile(fmarkup.path) + in, err = os.ReadFile(fmarkup.path) if err != nil { return nil, fmt.Errorf(`%s: %w`, logp, err) } |
