Skip to content
This repository was archived by the owner on May 12, 2024. It is now read-only.

jdharmon/scryfallapi-go

Repository files navigation

Go Scryfall API Client

This package is auto-geneated from the Scryfall API definition.

Getting Started

  1. Get the scryfall package
$ go get github.com/jdharmon/scryfallapi-go
  1. Edit main.go
package main

import (
    "fmt"
    "context"
    "github.com/jdharmon/scryfallapi-go"
)

func main() {
    client := scryfall.NewCardsClient()
    ctx := context.TODO()
    card, err := client.GetRandom(ctx)
    if err != nil {
        panic(err)
    }
    fmt.Println("Got card:", *card.Name)
}
  1. Run
$ go run main.go

About

Go Scryfall API Client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published