Skip to content

Commit c98d64e

Browse files
committed
Rename package to wkd
1 parent cca4c3b commit c98d64e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

discovery.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wks
1+
package wkd
22

33
import (
44
"crypto/sha1"
@@ -17,7 +17,7 @@ import (
1717
func splitAddress(addr string) (local, domain string, err error) {
1818
parts := strings.Split(addr, "@")
1919
if len(parts) != 2 {
20-
return "", "", errors.New("wks: invalid email address")
20+
return "", "", errors.New("wkd: invalid email address")
2121
}
2222
return parts[0], parts[1], nil
2323
}

example_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
package wks_test
1+
package wkd_test
22

33
import (
44
"log"
55

6-
"github.com/emersion/go-openpgp-wks"
6+
"github.com/emersion/go-openpgp-wkd"
77
)
88

99
func ExampleDiscover() {
10-
pubkeys, err := wks.Discover("me@davlgd.fr")
10+
pubkeys, err := wkd.Discover("me@davlgd.fr")
1111
if err != nil {
1212
log.Fatal(err)
1313
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// wks implements OpenPGP Web Key Service, defined in
2-
// https://tools.ietf.org/html/draft-koch-openpgp-webkey-service-04
3-
package wks
1+
// wkd implements OpenPGP Web Key Directory, defined in
2+
// https://tools.ietf.org/html/draft-koch-openpgp-webkey-service-06
3+
package wkd
44

55
const wellKnownDir = ".well-known/openpgpkey"

0 commit comments

Comments
 (0)