| 6 | ) |
| 7 | |
| 8 | type GitHubData struct { |
| 9 | Data struct { |
| 10 | User struct { |
| 11 | Name string `json:"name"` |
| 12 | ContributionsCollection struct { |
| 13 | ContributionCalendar struct { |
| 14 | TotalContributions int `json:"totalContributions"` |
| 15 | Weeks []struct { |
| 16 | ContributionDays []ContributionDays `json:"contributionDays"` |
| 17 | } `json:"weeks"` |
| 18 | } `json:"contributionCalendar"` |
| 19 | } `json:"contributionsCollection"` |
| 20 | } `json:"user"` |
| 21 | } `json:"data"` |
| 22 | } |
| 23 | |
| 24 | func (g *GitHubData) GetContributionOfLastNDays(lastNDays int) ([]ContributionEntry, error) { |
| 25 | weeks := g.Data.User.ContributionsCollection.ContributionCalendar.Weeks |
nothing calls this directly
no outgoing calls
no test coverage detected