Go client for the Genderize.io web service.
Full API documentation is available on GoDocs.
Simple interface with minimal configuration.
responses, err := Get([]string{"James", "Eva", "Thunderhorse"})
if err != nil {
panic(err)
}
for _, response := range responses {
fmt.Printf("%s: %s\n", response.Name, response.Gender)
}
James: male
Eva: female
Thunderhorse:
Client with custom API key and user agent, query with language and country IDs.
client, err := NewClient(Config{
UserAgent: "GoGenderizeDocs/0.0",
// Note that you'll need to use your own API key.
APIKey: "",
})
if err != nil {
panic(err)
}
responses, err := client.Get(Query{
Names: []string{"Kim"},
CountryID: "dk",
LanguageID: "da",
})
if err != nil {
panic(err)
}
for _, response := range responses {
fmt.Printf("%s: %s\n", response.Name, response.Gender)
}
Kim: male
- Generate a new version number:
major.minor.micro
. It should be compatible with SemVer 2.0.0. - Update
Version
ingenderize.go
. - Add a changelog entry and date for the new version in
CHANGES.md
. - Commit the changes. This may be done as part of another change.
- Tag the commit with
git tag major.minor.micro
. - Push the tag to GitHub with
git push origin major.minor.micro
.