From 8f871b5468d002123f02378ae121dea248926c76 Mon Sep 17 00:00:00 2001 From: CodeLingo Bot Date: Thu, 14 Feb 2019 20:48:35 +0000 Subject: [PATCH] Fix function comments based on best practices from Effective Go Signed-off-by: CodeLingo Bot --- providers/facebook/user.go | 2 +- providers/github/user.go | 2 +- providers/gitlab/user.go | 2 +- providers/google/google.go | 2 +- providers/google/user.go | 2 +- providers/heroku/user.go | 2 +- providers/instagram/user.go | 4 ++-- providers/soundcloud/soundcloud.go | 2 +- providers/soundcloud/user.go | 2 +- providers/spotify/user.go | 2 +- providers/uber/user.go | 4 ++-- 11 files changed, 13 insertions(+), 13 deletions(-) diff --git a/providers/facebook/user.go b/providers/facebook/user.go index c014a89..9916124 100644 --- a/providers/facebook/user.go +++ b/providers/facebook/user.go @@ -76,7 +76,7 @@ func (u *User) AuthCode() string { return u.Data().Get(common.UserKeyAuthCode).Str() } -// GetValue gets any User field by name. +// Data gets any User field by name. func (u *User) Data() objx.Map { return u.data } diff --git a/providers/github/user.go b/providers/github/user.go index a1ddec3..fe3a274 100644 --- a/providers/github/user.go +++ b/providers/github/user.go @@ -76,7 +76,7 @@ func (u *User) AuthCode() string { return u.Data().Get(common.UserKeyAuthCode).Str() } -// GetValue gets any User field by name. +// Data gets any User field by name. func (u *User) Data() objx.Map { return u.data } diff --git a/providers/gitlab/user.go b/providers/gitlab/user.go index 5b271eb..d037751 100644 --- a/providers/gitlab/user.go +++ b/providers/gitlab/user.go @@ -77,7 +77,7 @@ func (u *User) AuthCode() string { return u.Data().Get(common.UserKeyAuthCode).Str() } -// GetValue gets any User field by name. +// Data gets any User field by name. func (u *User) Data() objx.Map { return u.data } diff --git a/providers/google/google.go b/providers/google/google.go index 6f4b8a5..ac31b0c 100644 --- a/providers/google/google.go +++ b/providers/google/google.go @@ -38,7 +38,7 @@ func New(clientId, clientSecret, redirectUrl string) *GoogleProvider { return p } -// TipperFactory gets an OAuth2TripperFactory +// TripperFactory gets an OAuth2TripperFactory func (provider *GoogleProvider) TripperFactory() common.TripperFactory { if provider.tripperFactory == nil { diff --git a/providers/google/user.go b/providers/google/user.go index c9e3594..27d4b70 100644 --- a/providers/google/user.go +++ b/providers/google/user.go @@ -75,7 +75,7 @@ func (u *User) AuthCode() string { return u.Data().Get(common.UserKeyAuthCode).Str() } -// GetValue gets any User field by name. +// Data gets any User field by name. func (u *User) Data() objx.Map { return u.data } diff --git a/providers/heroku/user.go b/providers/heroku/user.go index 3237517..723d8ba 100644 --- a/providers/heroku/user.go +++ b/providers/heroku/user.go @@ -71,7 +71,7 @@ func (u *User) AuthCode() string { return u.Data().Get(common.UserKeyAuthCode).Str() } -// GetValue gets any User field by name. +// Data gets any User field by name. func (u *User) Data() objx.Map { return u.data } diff --git a/providers/instagram/user.go b/providers/instagram/user.go index ae76e59..70ebdbd 100644 --- a/providers/instagram/user.go +++ b/providers/instagram/user.go @@ -42,7 +42,7 @@ func (u *User) Nickname() string { } -// Instagram API doesn't return email +// Email: Instagram API doesn't return email func (u *User) Email() string { return "" } @@ -75,7 +75,7 @@ func (u *User) AuthCode() string { return u.Data().Get(common.UserKeyAuthCode).Str() } -// GetValue gets any User field by name. +// Data gets any User field by name. func (u *User) Data() objx.Map { return u.data } diff --git a/providers/soundcloud/soundcloud.go b/providers/soundcloud/soundcloud.go index 99e78c1..16ab52c 100644 --- a/providers/soundcloud/soundcloud.go +++ b/providers/soundcloud/soundcloud.go @@ -38,7 +38,7 @@ func New(clientId, clientSecret, redirectUrl string) *SoundcloudProvider { return p } -// TipperFactory gets an OAuth2TripperFactory +// TripperFactory gets an OAuth2TripperFactory func (provider *SoundcloudProvider) TripperFactory() common.TripperFactory { if provider.tripperFactory == nil { diff --git a/providers/soundcloud/user.go b/providers/soundcloud/user.go index 231c3e7..32da4ca 100644 --- a/providers/soundcloud/user.go +++ b/providers/soundcloud/user.go @@ -73,7 +73,7 @@ func (u *User) AuthCode() string { return u.Data().Get(common.UserKeyAuthCode).Str() } -// GetValue gets any User field by name. +// Data gets any User field by name. func (u *User) Data() objx.Map { return u.data } diff --git a/providers/spotify/user.go b/providers/spotify/user.go index e0b8583..d141df6 100644 --- a/providers/spotify/user.go +++ b/providers/spotify/user.go @@ -77,7 +77,7 @@ func (u *User) AuthCode() string { return u.Data().Get(common.UserKeyAuthCode).Str() } -// GetValue gets any User field by name. +// Data gets any User field by name. func (u *User) Data() objx.Map { return u.data } diff --git a/providers/uber/user.go b/providers/uber/user.go index b14841b..6ffcdf8 100644 --- a/providers/uber/user.go +++ b/providers/uber/user.go @@ -43,7 +43,7 @@ func (u *User) Nickname() string { } -// Uber API doesn't return email +// Email: Uber API doesn't return email func (u *User) Email() string { return "" } @@ -76,7 +76,7 @@ func (u *User) AuthCode() string { return u.Data().Get(common.UserKeyAuthCode).Str() } -// GetValue gets any User field by name. +// Data gets any User field by name. func (u *User) Data() objx.Map { return u.data }