Skip to content

Commit 6da0829

Browse files
joeybloggsjoeybloggs
authored andcommitted
rework for moving of repo to go-playground
1 parent 24cb1f6 commit 6da0829

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Library webhooks
22
================
33

4-
[![GoDoc](https://godoc.org/github.com/joeybloggs/webhooks?status.svg)](https://godoc.org/github.com/joeybloggs/webhooks)
4+
[![GoDoc](https://godoc.org/gopkg.in/go-playground/webhooks?status.svg)](https://godoc.org/gopkg.in/go-playground/webhooks)
55

66
Library webhooks allows for easy recieving and parsing of GitHub Webhook Events; more services to come i.e. BitBucket...
77

@@ -19,20 +19,20 @@ Installation
1919

2020
Use go get.
2121

22-
go get github.com/joeybloggs/webhooks
22+
go get gopkg.in/go-playground/webhooks
2323

2424
or to update
2525

26-
go get -u github.com/joeybloggs/webhooks
26+
go get -u gopkg.in/go-playground/webhooks
2727

2828
Then import the validator package into your own code.
2929

30-
import "github.com/joeybloggs/webhooks"
30+
import "gopkg.in/go-playground/webhooks"
3131

3232
Usage and documentation
3333
------
3434

35-
Please see http://godoc.org/github.com/joeybloggs/webhooks for detailed usage docs.
35+
Please see http://godoc.org/gopkg.in/go-playground/webhooks for detailed usage docs.
3636

3737
##### Examples:
3838

@@ -44,8 +44,8 @@ import (
4444
"fmt"
4545
"strconv"
4646

47-
"github.com/joeybloggs/webhooks"
48-
"github.com/joeybloggs/webhooks/github"
47+
"gopkg.in/go-playground/webhooks"
48+
"gopkg.in/go-playground/webhooks/github"
4949
)
5050

5151
const (
@@ -100,8 +100,8 @@ import (
100100
"fmt"
101101
"strconv"
102102

103-
"github.com/joeybloggs/webhooks"
104-
"github.com/joeybloggs/webhooks/github"
103+
"gopkg.in/go-playground/webhooks"
104+
"gopkg.in/go-playground/webhooks/github"
105105
)
106106

107107
const (

examples/multiple-handlers/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"strconv"
66

7-
"github.com/joeybloggs/webhooks"
8-
"github.com/joeybloggs/webhooks/github"
7+
"gopkg.in/go-playground/webhooks"
8+
"gopkg.in/go-playground/webhooks/github"
99
)
1010

1111
const (

examples/single-handler/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"strconv"
66

7-
"github.com/joeybloggs/webhooks"
8-
"github.com/joeybloggs/webhooks/github"
7+
"gopkg.in/go-playground/webhooks"
8+
"gopkg.in/go-playground/webhooks/github"
99
)
1010

1111
const (

github/github.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"io/ioutil"
99
"net/http"
1010

11-
"github.com/joeybloggs/webhooks"
11+
"gopkg.in/go-playground/webhooks"
1212
)
1313

1414
// Webhook instance contains all methods needed to process events

github/github_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"strconv"
88
"testing"
99

10-
"github.com/joeybloggs/webhooks"
1110
. "gopkg.in/go-playground/assert.v1"
11+
"gopkg.in/go-playground/webhooks"
1212
)
1313

1414
// NOTES:

webhooks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func RunServer(s *http.Server, hook Webhook, path string) error {
6161
// RunTLSServer runs a custom server with TLS configuration.
6262
// NOTE: http.Server Handler will be overridden by this library, just set it to nil.
6363
// Setting the Certificates can be done in the http.Server.TLSConfig.Certificates
64-
// see example here: https://github.com/joeybloggs/webhooks/blob/master/webhooks_test.go#L178
64+
// see example here: https://gopkg.in/go-playground/webhooks/blob/master/webhooks_test.go#L178
6565
func RunTLSServer(s *http.Server, hook Webhook, path string) error {
6666

6767
srv := &server{

0 commit comments

Comments
 (0)