Go

Go SDK

Oficiálne Go SDK. Podpora context, kompletné typové definície. Go 1.21+.

Inštalácia
$ go get github.com/TCG-Price-Lookup/tcglookup-go

Hlavné funkcie

  • ✓Zero third-party dependencies
  • ✓Idiomatic Go design
  • ✓Functional options pattern
  • ✓Typed error handling
  • ✓Context support
Príklad použitia
package main

import (
  "fmt"
  tcg "github.com/TCG-Price-Lookup/tcglookup-go"
)

func main() {
  client := tcg.NewClient(tcg.WithAPIKey("your-api-key"))
  results, _ := client.Search("charizard")
  fmt.Println(results)
}
GitHub →

Začnite vyvíjať s TCG API

Získajte bezplatný API kľúč a začnite dopytovať ceny kariet v priebehu minút.