From a24537c016c86b543de84ba8c24affca9a6661ea Mon Sep 17 00:00:00 2001 From: Will Norris Date: Mon, 6 Jul 2015 11:44:43 -0700 Subject: [PATCH] fix misc golint and gofmt issues --- github/gists.go | 2 +- github/licenses.go | 4 ++-- github/licenses_test.go | 2 +- github/repos_releases.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/github/gists.go b/github/gists.go index 14bf5dc..a662d35 100644 --- a/github/gists.go +++ b/github/gists.go @@ -157,7 +157,7 @@ func (s *GistsService) Get(id string) (*Gist, *Response, error) { return gist, resp, err } -// Get a specific revision of a gist. +// GetRevision gets a specific revision of a gist. // // GitHub API docs: https://developer.github.com/v3/gists/#get-a-specific-revision-of-a-gist func (s *GistsService) GetRevision(id, sha string) (*Gist, *Response, error) { diff --git a/github/licenses.go b/github/licenses.go index d2a5a50..fb2fb5a 100644 --- a/github/licenses.go +++ b/github/licenses.go @@ -21,7 +21,7 @@ type License struct { Name *string `json:"name,omitempty"` URL *string `json:"url,omitempty"` - HTMLURL *string `json:"html_url",omitempty` + HTMLURL *string `json:"html_url,omitempty"` Featured *bool `json:"featured,omitempty"` Description *string `json:"description,omitempty"` Category *string `json:"category,omitempty"` @@ -57,7 +57,7 @@ func (s *LicensesService) List() ([]License, *Response, error) { return *licenses, resp, err } -// Fetch extended metadata for one license. +// Get extended metadata for one license. // // GitHub API docs: https://developer.github.com/v3/licenses/#get-an-individual-license func (s *LicensesService) Get(licenseName string) (*License, *Response, error) { diff --git a/github/licenses_test.go b/github/licenses_test.go index 72f6633..dfecfeb 100644 --- a/github/licenses_test.go +++ b/github/licenses_test.go @@ -27,7 +27,7 @@ func TestLicensesService_List(t *testing.T) { t.Errorf("Licenses.List returned error: %v", err) } - want := []License{License{ + want := []License{{ Key: String("mit"), Name: String("MIT"), URL: String("https://api.github.com/licenses/mit"), diff --git a/github/repos_releases.go b/github/repos_releases.go index d0e041b..629b321 100644 --- a/github/repos_releases.go +++ b/github/repos_releases.go @@ -96,7 +96,7 @@ func (s *RepositoriesService) GetLatestRelease(owner, repo string) (*RepositoryR return s.getSingleRelease(u) } -// GetLatestReleaseByTag fetches a release with the specified tag. +// GetReleaseByTag fetches a release with the specified tag. // // GitHub API docs: https://developer.github.com/v3/repos/releases/#get-a-release-by-tag-name func (s *RepositoriesService) GetReleaseByTag(owner, repo, tag string) (*RepositoryRelease, *Response, error) {