Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Commit 021f427

Browse files
committed
Update: small updates to examples
1 parent b1bcb89 commit 021f427

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

examples/bitly/bitly.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
package main
77

88
import (
9+
"bitbucket.org/gosimple/oauth2"
10+
911
"flag"
1012
"fmt"
1113
"io"
1214
"log"
1315
"os"
1416

15-
"bitbucket.org/gosimple/oauth2"
1617
//"github.com/toqueteos/webbrowser"
1718
)
1819

@@ -50,7 +51,9 @@ func main() {
5051

5152
// Get authorization url.
5253
aUrl := service.GetAuthorizeURL("")
53-
fmt.Println("\n" + aUrl)
54+
fmt.Println()
55+
fmt.Printf("%v", aUrl)
56+
fmt.Println()
5457

5558
// Open authorization url in default system browser.
5659
//webbrowser.Open(url)

examples/github/github.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
package main
88

99
import (
10+
"bitbucket.org/gosimple/oauth2"
11+
1012
"flag"
1113
"fmt"
1214
"io"
1315
"log"
1416
"os"
1517

16-
"bitbucket.org/gosimple/oauth2"
1718
//"github.com/toqueteos/webbrowser"
1819
)
1920

@@ -51,7 +52,9 @@ func main() {
5152

5253
// Get authorization url.
5354
aUrl := service.GetAuthorizeURL("")
54-
fmt.Println("\n", aUrl)
55+
fmt.Println()
56+
fmt.Printf("%v", aUrl)
57+
fmt.Println()
5558

5659
// Open authorization url in default system browser.
5760
//webbrowser.Open(url)

0 commit comments

Comments
 (0)