File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,10 @@ import (
17
17
// If you have multiple servers for example, you may need to share at
18
18
// least
19
19
// the nonceStore between them.
20
- var nonceStore = openid .NewSimpleNonceStore ()
21
- var discoveryCache = newTimedDiscoveryCache (24 * time .Hour )
20
+ var (
21
+ nonceStore = openid .NewSimpleNonceStore ()
22
+ discoveryCache = newTimedDiscoveryCache (24 * time .Hour )
23
+ )
22
24
23
25
// Verify handles response from OpenID provider
24
26
func Verify (fullURL string ) (id string , err error ) {
Original file line number Diff line number Diff line change @@ -7,8 +7,10 @@ package util
7
7
import "unicode/utf8"
8
8
9
9
// in UTF8 "…" is 3 bytes so doesn't really gain us anything...
10
- const utf8Ellipsis = "…"
11
- const asciiEllipsis = "..."
10
+ const (
11
+ utf8Ellipsis = "…"
12
+ asciiEllipsis = "..."
13
+ )
12
14
13
15
// SplitStringAtByteN splits a string at byte n accounting for rune boundaries. (Combining characters are not accounted for.)
14
16
func SplitStringAtByteN (input string , n int ) (left , right string ) {
You can’t perform that action at this time.
0 commit comments