From e049d530c378d6654922f253afe9f1867c11377c Mon Sep 17 00:00:00 2001 From: Alif Rachmawadi Date: Tue, 2 Sep 2014 21:17:45 +0700 Subject: [PATCH 1/2] fixed NewTransport example code --- oauth2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth2.go b/oauth2.go index 6441316..573e87a 100644 --- a/oauth2.go +++ b/oauth2.go @@ -162,7 +162,7 @@ func (c *Config) AuthCodeURL(state string) (authURL string) { // refresh token) in order to be able to do authorized requests. // // Example: -// t, _ := c.NewTransport() +// t := c.NewTransport() // t.SetToken(validToken) // func (c *Config) NewTransport() *Transport { From eae9d0e836ee3052640365a99e36968cea0dfab0 Mon Sep 17 00:00:00 2001 From: Alif Rachmawadi Date: Wed, 3 Sep 2014 08:27:29 +0700 Subject: [PATCH 2/2] removed NewTransport inline example --- oauth2.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/oauth2.go b/oauth2.go index 573e87a..e41ed59 100644 --- a/oauth2.go +++ b/oauth2.go @@ -160,11 +160,6 @@ func (c *Config) AuthCodeURL(state string) (authURL string) { // initialize the new transport with a token, so after creation, // you need to set a valid token (or an expired token with a valid // refresh token) in order to be able to do authorized requests. -// -// Example: -// t := c.NewTransport() -// t.SetToken(validToken) -// func (c *Config) NewTransport() *Transport { return NewTransport(c.Transport, c, nil) }