summaryrefslogtreecommitdiffstats
path: root/pkg/cheatsheet
diff options
context:
space:
mode:
authorjiepeng <jiepengthegreat@126.com>2022-09-13 18:11:03 +0800
committerJesse Duffield <jessedduffield@gmail.com>2022-09-17 15:10:41 -0700
commitb8900baf1ada72c24e58c487122c21e80858f52a (patch)
tree64c67fecd215d00e540a5d5c2030878b92cff981 /pkg/cheatsheet
parentc81333fefe2f1e27ab2fcb6a0dc37d82ca47c711 (diff)
remove deprecated calls
Diffstat (limited to 'pkg/cheatsheet')
-rw-r--r--pkg/cheatsheet/check.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/cheatsheet/check.go b/pkg/cheatsheet/check.go
index a0c40e775..6123e4aa5 100644
--- a/pkg/cheatsheet/check.go
+++ b/pkg/cheatsheet/check.go
@@ -3,7 +3,6 @@ package cheatsheet
import (
"fmt"
"io/fs"
- "io/ioutil"
"log"
"os"
"path/filepath"
@@ -60,7 +59,7 @@ func obtainContent(dir string) string {
content := ""
err := filepath.WalkDir(dir, func(path string, d fs.DirEntry, err error) error {
if re.MatchString(path) {
- bytes, err := ioutil.ReadFile(path)
+ bytes, err := os.ReadFile(path)
if err != nil {
log.Fatalf("Error occurred while checking if cheatsheets are up to date: %v", err)
}