From 0365900627623cebc7286641f3ee94385edbccfb Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sat, 1 Jul 2023 19:39:21 +0700 Subject: all: replace ioutil.ReadFile with os.ReadFile The ioutil has been deprecated since Go 1.19. --- converter.go | 3 +-- 1 file changed, 1 insertion(+), 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) } -- cgit v1.3