Skip to content

Instantly share code, notes, and snippets.

@plutov
Created May 4, 2020 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plutov/6db67bf090a9ec626b8d318af7b46647 to your computer and use it in GitHub Desktop.
Save plutov/6db67bf090a9ec626b8d318af7b46647 to your computer and use it in GitHub Desktop.
testable7.go
func GetAverageStarsPerRepo(repositoriesAPI RepositoriesAPI, username string) (float64, error) {
repos, err := repositoriesAPI.GetRepos(username)
if err != nil {
return 0, err
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment