add a comment

This commit is contained in:
yangzhouhan 2015-08-14 16:32:38 -07:00
parent 7f81611b64
commit c783da2ff9
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ type oauthAccess struct {
token oauth2.Token
}
// NewOauthAccess constructs the credentials using a given token.
func NewOauthAccess(token *oauth2.Token) credentials.Credentials {
return oauthAccess{token: *token}
}