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 密钥,几分钟内即可开始查询卡牌价格。