Go
Go SDK
SDK Go อย่างเป็นทางการ รองรับ context type definition ครบถ้วน 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)
}
เริ่มสร้างด้วย TCG API
รับคีย์ API ฟรีและเริ่มค้นหาราคาการ์ดภายในไม่กี่นาที