import ( "github.com/Newscatcher/newscatcher-go/core" "fmt")response, err := client.Search.Post(...)if err != nil { if apiErr, ok := err.(*core.APIError); ok { fmt.Println(apiErr.Error()) fmt.Println(apiErr.StatusCode) } return err}
For complete documentation, including specific error types, retry configuration,
and timeouts, see the
GitHub repository.
If you use our legacy Go SDK (Konfig-based), see our Legacy
SDKs documentation. We recommend
migrating to this newer SDK for improved features and ongoing support.