We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5f8c641 + 597fe13 commit 4ac4229Copy full SHA for 4ac4229
main.go
@@ -2,7 +2,6 @@ package main
2
3
import (
4
"fmt"
5
- "io/ioutil"
6
"os"
7
"strings"
8
@@ -58,7 +57,7 @@ func main() {
58
57
file := args[1]
59
60
if strings.HasSuffix(file, "nr") || strings.HasSuffix(file, ".sw") {
61
- contents, err := ioutil.ReadFile(file)
+ contents, err := os.ReadFile(file)
62
if err != nil {
63
fmt.Println(styles.ErrorStyle.Render("Error: Nuru imeshindwa kusoma faili: ", args[1]))
64
os.Exit(0)
0 commit comments