fix: Replaced ioutil as it was deprecated in Golang.

This commit is contained in:
James Wells 2024-02-09 12:47:17 -08:00
parent 82a964fc50
commit 97c8af8816
Signed by: jwells
GPG key ID: 73196D10B8E65666
18 changed files with 105 additions and 114 deletions

View file

@ -1,11 +1,11 @@
package main
import (
"bufio"
"flag"
"fmt"
"io/ioutil"
"os"
bufio "bufio"
flag "flag"
fmt "fmt"
io "io"
os "os"
picol "github.com/dragonheim/gagent/pkg/picol"
)
@ -16,7 +16,7 @@ func RunPicol(fname string) error {
interp := picol.NewInterpreter()
interp.RegisterCoreCommands()
buf, err := ioutil.ReadFile(fname)
buf, err := io.ReadFile(fname)
if err == nil {
result, err := interp.Eval(string(buf))
if err != nil {