Use the RapidAPI PokemonGo API to retrieve a random Pokemon character. The PokemonGo API requires an API key (free) to use, so you'll need to sign up for one before you can use the client.
If you've not done Go development previously, the Learn Go With Tests repository has some clear instructions for setting up your environment.
To use in your code, create a configuration object and then pass it as a parameter when creating a new instance of the API client:
config := Config{
APIKey: os.Getenv("POKE_API_KEY"),
BaseUrl: os.Getenv("POKE_BASE_URL")
}
client := NewClient(config)
character := client.GetRandomPokemon()
This code adopts many of it's patterns from the NewRelic Go client