diff --git a/services/readJson.go b/services/readJson.go index 7f3b366..1a1ad55 100644 --- a/services/readJson.go +++ b/services/readJson.go @@ -15,7 +15,7 @@ func readJson() []Server { fmt.Println(err) } fmt.Println("Successfully Opened users.json") - // defer the closing of our jsonFile so that we can parse it later on + defer jsonFile.Close() byteValue, _ := io.ReadAll(jsonFile)