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キーを取得して、数分でカード価格の取得を開始。