An exercise for Golang Training using the Punk (Brewdog) API.
https://punkapi.com/documentation/v2
We'll build this as a CLI script using https://github.com/spf13/cobra.
-
The primary goal of your application is to return the strongest beer by abv you can find in the API. For example I would issue the command in my terminal
$ punkbeers strongest
-
Return the strongest n beers where n is a user supplied parameter of your application.
$ punkbeers strongest --n 5
-
Return the strongest beer for a given food pairing, either do the matching yourself or use the food param of the beers api.
$ punkbeers strongest --food pork