Skip to content

Commit 0ddd408

Browse files
committed
Fix minor issue abbot#37 with example in README.md and gofmt users.go
1 parent d45c47b commit 0ddd408

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ This is a complete working example for Basic auth:
2424
package main
2525

2626
import (
27-
"github.com/abbot/go-http-auth"
2827
"fmt"
2928
"net/http"
29+
30+
auth "github.com/abbot/go-http-auth"
3031
)
3132

3233
func Secret(user, realm string) string {

users.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import (
66
"sync"
77
)
88

9-
/*
9+
/*
1010
SecretProvider is used by authenticators. Takes user name and realm
1111
as an argument, returns secret required for authentication (HA1 for
1212
digest authentication, properly encrypted password for basic).
13-
13+
1414
Returning an empty string means failing the authentication.
1515
*/
1616
type SecretProvider func(user, realm string) string

0 commit comments

Comments
 (0)