man: remove deprecated io/ioutil and use t.TempDir()

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-02-25 15:33:19 +01:00
parent 7491c5ac65
commit 85754c9ab5
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,6 @@ package main
import (
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
@ -74,7 +73,7 @@ func loadLongDescription(cmd *cobra.Command, path string) error {
continue
}
content, err := ioutil.ReadFile(fullpath)
content, err := os.ReadFile(fullpath)
if err != nil {
return err
}
@ -85,7 +84,7 @@ func loadLongDescription(cmd *cobra.Command, path string) error {
continue
}
content, err = ioutil.ReadFile(fullpath)
content, err = os.ReadFile(fullpath)
if err != nil {
return err
}