DeepTap

Go SDK

Go client for the DeepTap API.

go get github.com/RelayOne/deeptap/sdk/go
package main
 
import (
    "context"
    "fmt"
 
    deeptap "github.com/RelayOne/deeptap/sdk/go"
)
 
func main() {
    client := deeptap.New(deeptap.WithAPIKey("dt_live_xxx"))
    res, err := client.Search(context.Background(), &deeptap.SearchRequest{
        Query: "who invented sqlite",
        Depth: 1,
    })
    if err != nil {
        panic(err)
    }
    fmt.Println(res.Results[0].URL)
}