Basic parsing

This commit is contained in:
Christian Nieves
2023-07-03 18:35:57 -05:00
parent 574a07495f
commit 74b67313e7
4 changed files with 10 additions and 3 deletions

View File

@ -13,11 +13,12 @@ func main() {
fmt.Println("LOTR CARD PARSE")
// Open our jsonFile
jsonFile, err := os.Open("users.json")
// Open our jsonFile
jsonFile, err := os.Open("./data/Bot.Cards.json")
// if we os.Open returns an error then handle it
if err != nil {
fmt.Println(err)
return
}
fmt.Println("Successfully Opened users.json")
// defer the closing of our jsonFile so that we can parse it later on