Skip to content

Commit

Permalink
Change from ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewAubury committed Apr 14, 2024
1 parent ed3385e commit e763a25
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"net"
"os"
Expand Down Expand Up @@ -41,7 +40,7 @@ func main() {
flag.Parse()

config := Config{}
configFile, err := ioutil.ReadFile(*configPath)
configFile, err := os.ReadFile(*configPath)
if err != nil {
fmt.Println("Error reading config file:", err)
os.Exit(1)
Expand Down

0 comments on commit e763a25

Please sign in to comment.