Skip to content

Commit f842162

Browse files
Merge pull request #479 from Jleagle/master
2 parents 2684001 + 309b7c2 commit f842162

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+169
-131
lines changed

providers/amazon/amazon.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ package amazon
55
import (
66
"bytes"
77
"encoding/json"
8+
"fmt"
89
"io"
910
"io/ioutil"
1011
"net/http"
1112
"net/url"
1213

13-
"fmt"
1414
"github.com/markbates/goth"
1515
"golang.org/x/oauth2"
1616
)

providers/amazon/amazon_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package amazon_test
22

33
import (
4+
"os"
5+
"testing"
6+
47
"github.com/markbates/goth"
58
"github.com/markbates/goth/providers/amazon"
69
"github.com/stretchr/testify/assert"
7-
"os"
8-
"testing"
910
)
1011

1112
func Test_New(t *testing.T) {

providers/amazon/session_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package amazon_test
22

33
import (
4+
"testing"
5+
46
"github.com/markbates/goth"
57
"github.com/markbates/goth/providers/amazon"
68
"github.com/stretchr/testify/assert"
7-
"testing"
89
)
910

1011
func Test_Implements_Session(t *testing.T) {

providers/auth0/auth0.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ package auth0
55
import (
66
"bytes"
77
"encoding/json"
8+
"fmt"
89
"io"
910
"net/http"
1011

11-
"fmt"
12-
1312
"github.com/markbates/goth"
1413
"golang.org/x/oauth2"
1514
)

providers/auth0/session_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package auth0_test
22

33
import (
4+
"testing"
5+
46
"github.com/markbates/goth"
57
"github.com/markbates/goth/providers/auth0"
68
"github.com/stretchr/testify/assert"
7-
"testing"
89
)
910

1011
func Test_Implements_Session(t *testing.T) {

providers/battlenet/battlenet.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ package battlenet
55
import (
66
"bytes"
77
"encoding/json"
8+
"fmt"
89
"io/ioutil"
910
"net/http"
1011

11-
"fmt"
12-
1312
"github.com/markbates/goth"
1413
"golang.org/x/oauth2"
1514
)

providers/battlenet/battlenet_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package battlenet_test
22

33
import (
4+
"os"
5+
"testing"
6+
47
"github.com/markbates/goth"
58
"github.com/markbates/goth/providers/battlenet"
69
"github.com/stretchr/testify/assert"
7-
"os"
8-
"testing"
910
)
1011

1112
func Test_New(t *testing.T) {

providers/battlenet/session_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package battlenet_test
22

33
import (
4+
"testing"
5+
46
"github.com/markbates/goth"
57
"github.com/markbates/goth/providers/battlenet"
68
"github.com/stretchr/testify/assert"
7-
"testing"
89
)
910

1011
func Test_Implements_Session(t *testing.T) {

providers/box/box.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ package box
44

55
import (
66
"encoding/json"
7+
"fmt"
78
"io"
89
"net/http"
910

10-
"fmt"
1111
"github.com/markbates/goth"
1212
"golang.org/x/oauth2"
1313
)

providers/box/box_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package box_test
22

33
import (
4+
"os"
5+
"testing"
6+
47
"github.com/markbates/goth"
58
"github.com/markbates/goth/providers/box"
69
"github.com/stretchr/testify/assert"
7-
"os"
8-
"testing"
910
)
1011

1112
func Test_New(t *testing.T) {

providers/box/session_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package box_test
22

33
import (
4+
"testing"
5+
46
"github.com/markbates/goth"
57
"github.com/markbates/goth/providers/box"
68
"github.com/stretchr/testify/assert"
7-
"testing"
89
)
910

1011
func Test_Implements_Session(t *testing.T) {

providers/cloudfoundry/cf_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package cloudfoundry_test
22

33
import (
4+
"os"
5+
"testing"
6+
47
"github.com/markbates/goth"
58
"github.com/markbates/goth/providers/cloudfoundry"
69
"github.com/stretchr/testify/assert"
7-
"os"
8-
"testing"
910
)
1011

1112
func Test_New(t *testing.T) {

providers/cloudfoundry/session_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package cloudfoundry_test
22

33
import (
4+
"testing"
5+
46
"github.com/markbates/goth"
57
"github.com/markbates/goth/providers/cloudfoundry"
68
"github.com/stretchr/testify/assert"
7-
"testing"
89
)
910

1011
func Test_Implements_Session(t *testing.T) {

providers/dailymotion/dailymotion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ package dailymotion
55
import (
66
"bytes"
77
"encoding/json"
8+
"fmt"
89
"io"
910
"io/ioutil"
1011
"net/http"
1112
"net/url"
1213

13-
"fmt"
1414
"github.com/markbates/goth"
1515
"golang.org/x/oauth2"
1616
)

providers/dailymotion/session.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package dailymotion
33
import (
44
"encoding/json"
55
"errors"
6-
"github.com/markbates/goth"
7-
"golang.org/x/oauth2"
86
"strings"
97
"time"
8+
9+
"github.com/markbates/goth"
10+
"golang.org/x/oauth2"
1011
)
1112

1213
// Session stores data during the auth process with Dailymotion.

providers/dailymotion/session_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package dailymotion_test
22

33
import (
4+
"testing"
5+
46
"github.com/markbates/goth"
57
"github.com/markbates/goth/providers/dailymotion"
68
"github.com/stretchr/testify/assert"
7-
"testing"
89
)
910

1011
func Test_Implements_Session(t *testing.T) {

providers/deezer/deezer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import (
66
"bytes"
77
"encoding/json"
88
"errors"
9+
"fmt"
910
"io"
1011
"io/ioutil"
1112
"net/http"
1213
"net/url"
1314

14-
"fmt"
1515
"github.com/markbates/goth"
1616
"golang.org/x/oauth2"
1717
)

providers/deezer/session.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package deezer
33
import (
44
"encoding/json"
55
"errors"
6-
"github.com/markbates/goth"
7-
"golang.org/x/oauth2"
86
"strings"
97
"time"
8+
9+
"github.com/markbates/goth"
10+
"golang.org/x/oauth2"
1011
)
1112

1213
// Session stores data during the auth process with Deezer.

providers/deezer/session_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package deezer_test
22

33
import (
4+
"testing"
5+
46
"github.com/markbates/goth"
57
"github.com/markbates/goth/providers/deezer"
68
"github.com/stretchr/testify/assert"
7-
"testing"
89
)
910

1011
func Test_Implements_Session(t *testing.T) {

providers/digitalocean/digitalocean.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ package digitalocean
55
import (
66
"bytes"
77
"encoding/json"
8+
"fmt"
89
"io"
910
"io/ioutil"
1011
"net/http"
1112

12-
"fmt"
1313
"github.com/markbates/goth"
1414
"golang.org/x/oauth2"
1515
)

providers/discord/session.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package discord
33
import (
44
"encoding/json"
55
"errors"
6-
"github.com/markbates/goth"
7-
"golang.org/x/oauth2"
86
"strings"
97
"time"
8+
9+
"github.com/markbates/goth"
10+
"golang.org/x/oauth2"
1011
)
1112

1213
// Session stores data during the auth process with Discord

providers/dropbox/dropbox.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ import (
55
"bytes"
66
"encoding/json"
77
"errors"
8+
"fmt"
89
"io"
910
"io/ioutil"
1011
"net/http"
1112
"strings"
1213

13-
"fmt"
14-
1514
"github.com/markbates/goth"
1615
"golang.org/x/oauth2"
1716
)

providers/eveonline/eveonline.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ package eveonline
55
import (
66
"bytes"
77
"encoding/json"
8+
"fmt"
89
"io/ioutil"
910
"net/http"
1011

11-
"fmt"
12-
1312
"github.com/markbates/goth"
1413
"golang.org/x/oauth2"
1514
)

providers/fitbit/fitbit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ package fitbit
44

55
import (
66
"encoding/json"
7+
"fmt"
78
"io"
89
"net/http"
910

10-
"fmt"
1111
"github.com/markbates/goth"
1212
"golang.org/x/oauth2"
1313
)

providers/gitea/gitea.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ package gitea
55
import (
66
"bytes"
77
"encoding/json"
8+
"fmt"
89
"io"
910
"io/ioutil"
1011
"net/http"
1112
"net/url"
1213
"strconv"
1314

14-
"fmt"
1515
"github.com/markbates/goth"
1616
"golang.org/x/oauth2"
1717
)

providers/gitea/session_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package gitea_test
22

33
import (
4+
"testing"
5+
46
"github.com/markbates/goth"
57
"github.com/markbates/goth/providers/gitea"
68
"github.com/stretchr/testify/assert"
7-
"testing"
89
)
910

1011
func Test_Implements_Session(t *testing.T) {

providers/gitlab/gitlab.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ package gitlab
55
import (
66
"bytes"
77
"encoding/json"
8+
"fmt"
89
"io"
910
"io/ioutil"
1011
"net/http"
1112
"net/url"
1213
"strconv"
1314

14-
"fmt"
1515
"github.com/markbates/goth"
1616
"golang.org/x/oauth2"
1717
)

providers/gitlab/session_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package gitlab_test
22

33
import (
4+
"testing"
5+
46
"github.com/markbates/goth"
57
"github.com/markbates/goth/providers/gitlab"
68
"github.com/stretchr/testify/assert"
7-
"testing"
89
)
910

1011
func Test_Implements_Session(t *testing.T) {

providers/gplus/gplus.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ package gplus
55
import (
66
"bytes"
77
"encoding/json"
8+
"fmt"
89
"io"
910
"io/ioutil"
1011
"net/http"
1112
"net/url"
1213
"strings"
1314

14-
"fmt"
1515
"github.com/markbates/goth"
1616
"golang.org/x/oauth2"
1717
)

0 commit comments

Comments
 (0)