Versions in this module Expand all Collapse all v0 v0.1.0 Jun 26, 2026 Changes in this version + const Version + type AgifyBatchResult struct + Quota Quota + Results []AgifyPrediction + type AgifyPrediction struct + Age *int + Count int + CountryID string + Name string + type AgifyResult struct + Quota Quota + type AuthError struct + func (e *AuthError) Unwrap() error + type Client struct + func New(apiKey string, opts ...Option) *Client + func (c *Client) Agify(ctx context.Context, name string, opts ...RequestOption) (AgifyResult, error) + func (c *Client) AgifyBatch(ctx context.Context, names []string, opts ...RequestOption) (AgifyBatchResult, error) + func (c *Client) Genderize(ctx context.Context, name string, opts ...RequestOption) (GenderizeResult, error) + func (c *Client) GenderizeBatch(ctx context.Context, names []string, opts ...RequestOption) (GenderizeBatchResult, error) + func (c *Client) Nationalize(ctx context.Context, name string) (NationalizeResult, error) + func (c *Client) NationalizeBatch(ctx context.Context, names []string) (NationalizeBatchResult, error) + type DemografixError struct + Message string + Quota *Quota + Status int + func AsDemografixError(err error) (*DemografixError, bool) + func (e *DemografixError) Error() string + type GenderizeBatchResult struct + Quota Quota + Results []GenderizePrediction + type GenderizePrediction struct + Count int + CountryID string + Gender string + Name string + Probability float64 + type GenderizeResult struct + Quota Quota + type NationalizeBatchResult struct + Quota Quota + Results []NationalizePrediction + type NationalizeCountry struct + CountryID string + Probability float64 + type NationalizePrediction struct + Count int + Country []NationalizeCountry + Name string + type NationalizeResult struct + Quota Quota + type Option func(*Client) + func WithTimeout(timeout time.Duration) Option + type Quota struct + Limit int + Remaining int + Reset int + type RateLimitError struct + func (e *RateLimitError) Unwrap() error + type RequestOption func(*requestConfig) + func WithCountry(countryID string) RequestOption + type SubscriptionError struct + func (e *SubscriptionError) Unwrap() error + type TransportError struct + Err error + func (e *TransportError) Unwrap() []error + type ValidationError struct + func (e *ValidationError) Unwrap() error