This is currently a work in progress.
Package insights provides idiomatic Go APIs for accessing deps.dev API v3.
First create a client.
client := insights.NewClient()Then use that client to interact with the API.
ctx := context.Background()
deps, err := client.GetDependencies(ctx, "npm", "react", "18.2.0")
if err != nil {
log.Fatal(err)
}