forked from Mirrors/oauth2
oauth2: drop pre-1.4 workaround
Change-Id: Icac33569b4937602b0aac46ec36cc85b5aa53877 Reviewed-on: https://go-review.googlesource.com/6071 Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
parent
85a72d36ea
commit
5738e56ec6
|
@ -7,15 +7,10 @@ package oauth2_test
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"testing"
|
|
||||||
|
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO(jbd): Remove after Go 1.4.
|
|
||||||
// Related to https://codereview.appspot.com/107320046
|
|
||||||
func TestA(t *testing.T) {}
|
|
||||||
|
|
||||||
func ExampleConfig() {
|
func ExampleConfig() {
|
||||||
conf := &oauth2.Config{
|
conf := &oauth2.Config{
|
||||||
ClientID: "YOUR_CLIENT_ID",
|
ClientID: "YOUR_CLIENT_ID",
|
||||||
|
|
|
@ -11,7 +11,6 @@ import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
|
||||||
|
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
"golang.org/x/oauth2/google"
|
"golang.org/x/oauth2/google"
|
||||||
|
@ -20,10 +19,6 @@ import (
|
||||||
"google.golang.org/appengine/urlfetch"
|
"google.golang.org/appengine/urlfetch"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Remove after Go 1.4.
|
|
||||||
// Related to https://codereview.appspot.com/107320046
|
|
||||||
func TestA(t *testing.T) {}
|
|
||||||
|
|
||||||
func Example_webServer() {
|
func Example_webServer() {
|
||||||
// Your credentials should be obtained from the Google
|
// Your credentials should be obtained from the Google
|
||||||
// Developer Console (https://console.developers.google.com).
|
// Developer Console (https://console.developers.google.com).
|
||||||
|
|
Loading…
Reference in New Issue