TheMathemagicians/sevenkeys/cmd/printinglist/main.go

21 lines
315 B
Go
Raw Normal View History

2024-05-27 12:29:00 +00:00
package main
import (
"fmt"
"log"
"sevenkeys/database"
"sevenkeys/database/operations"
)
func main() {
db := database.GetDatabaseFromConfig("config.json")
allCardNames, err := operations.GetAllCardNames(db)
if err != nil {
log.Fatal(err)
}
for _, name := range allCardNames {
fmt.Println(name)
}
}