"gopkg.in/yaml.v3"
"io"
"io/fs"
- "io/ioutil"
"math/big"
"math/rand"
"net"
if err != nil {
return err
}
- err = ioutil.WriteFile(
+ err = os.WriteFile(
filepath.Join(s.ConfigDir, "Banlist.yaml"),
out,
0666,
return err
}
- if err := receiveFile(rwc, file, ioutil.Discard, ioutil.Discard, fileTransfer.bytesSentCounter); err != nil {
+ if err := receiveFile(rwc, file, io.Discard, io.Discard, fileTransfer.bytesSentCounter); err != nil {
s.Logger.Error(err)
}
"github.com/gdamore/tcell/v2"
"github.com/rivo/tview"
"gopkg.in/yaml.v3"
- "io/ioutil"
"os"
"strconv"
"strings"
// TODO: handle err
}
// TODO: handle err
- err = ioutil.WriteFile(ui.HLClient.cfgPath, out, 0666)
+ err = os.WriteFile(ui.HLClient.cfgPath, out, 0666)
if err != nil {
println(ui.HLClient.cfgPath)
panic(err)
panic(err)
}
- err = ioutil.WriteFile(ui.HLClient.cfgPath, out, 0666)
+ err = os.WriteFile(ui.HLClient.cfgPath, out, 0666)
if err != nil {
panic(err)
}