package main
import (
"context"
"fmt"
"github.com/oregister/openregister-go"
"github.com/oregister/openregister-go/option"
)
func main() {
client := openregister.NewClient(
option.WithAPIKey("My API Key"), // defaults to os.LookupEnv("OPENREGISTER_API_KEY")
)
response, err := client.Search.FindCompanies(context.TODO(), openregister.SearchFindCompaniesParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Results)
}