From 44f94ace7287b4310afd66831f961132546821b1 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sun, 15 Dec 2024 20:05:01 +0100 Subject: [PATCH] Revert "md2man.go: rename ioutil to io" for compat with go <= 1.17 This reverts commit 76076049c2eabc4093673224cdb3dbccd2b5db1d. Signed-off-by: Sebastiaan van Stijn --- md2man.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/md2man.go b/md2man.go index 4ea49f3..4ff873b 100644 --- a/md2man.go +++ b/md2man.go @@ -3,7 +3,7 @@ package main import ( "flag" "fmt" - "io" + "io/ioutil" "os" "github.com/cpuguy83/go-md2man/v2/md2man" @@ -28,7 +28,7 @@ func main() { } defer inFile.Close() // nolint: errcheck - doc, err := io.ReadAll(inFile) + doc, err := ioutil.ReadAll(inFile) if err != nil { fmt.Println(err) os.Exit(1)