Go

Go SDK

官方 Go SDK。支援 context,附完整型別定義。需要 Go 1.21+。

安裝
$ go get github.com/TCG-Price-Lookup/tcglookup-go

主要功能

  • Zero third-party dependencies
  • Idiomatic Go design
  • Functional options pattern
  • Typed error handling
  • Context support
使用範例
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 →

開始使用 TCG API 進行開發

取得免費 API 金鑰,幾分鐘內即可開始查詢卡牌價格。