(client *http.Client, cacheTTL time.Duration)
| 14 | } |
| 15 | |
| 16 | func newReadmeGetter(client *http.Client, cacheTTL time.Duration) *readmeGetter { |
| 17 | cachingClient := api.NewCachedHTTPClient(client, cacheTTL) |
| 18 | return &readmeGetter{ |
| 19 | client: cachingClient, |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | func (g *readmeGetter) Get(repoFullName string) (string, error) { |
| 24 | repo, err := ghrepo.FromFullName(repoFullName) |