topics/go/exercises/contributors/README.md
Create a project folder in your $GOPATH outside of this repository. A good place would be $GOPATH/src/github.com/yourname/contributors where yourname is your GitHub username.
Create a program which can call the GitHub API to get a list of contributors for the golang/go repository.
net/http package to make your request and the encoding/json package to decode the response. The docs for each of these packages is online: net/http, encoding/json.Do method to execute the request.api.github.com.A template file is included to get you started.
Client with a method Contributors.package main to another package like package github.main that uses the client. func printContributors(repo string, c *github.Client) intprintContributors function to depend on an interface instead of the concrete type.printContributors. Create a mock version of the github client
and pass that in. To capture the output you can change the printContributors
function to accept an io.Writer where it should print results.github package using net/http/httptest.NewServer.flag package.encoding/csv package.