diff --git a/README.md b/README.md index f30af72..1f0aebc 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Library webhooks ================ -[![GoDoc](https://godoc.org/github.com/joeybloggs/webhooks?status.svg)](https://godoc.org/github.com/joeybloggs/webhooks) +[![GoDoc](https://godoc.org/gopkg.in/go-playground/webhooks?status.svg)](https://godoc.org/gopkg.in/go-playground/webhooks) Library webhooks allows for easy recieving and parsing of GitHub Webhook Events; more services to come i.e. BitBucket... @@ -19,20 +19,20 @@ Installation Use go get. - go get github.com/joeybloggs/webhooks + go get gopkg.in/go-playground/webhooks or to update - go get -u github.com/joeybloggs/webhooks + go get -u gopkg.in/go-playground/webhooks Then import the validator package into your own code. - import "github.com/joeybloggs/webhooks" + import "gopkg.in/go-playground/webhooks" Usage and documentation ------ -Please see http://godoc.org/github.com/joeybloggs/webhooks for detailed usage docs. +Please see http://godoc.org/gopkg.in/go-playground/webhooks for detailed usage docs. ##### Examples: @@ -44,8 +44,8 @@ import ( "fmt" "strconv" - "github.com/joeybloggs/webhooks" - "github.com/joeybloggs/webhooks/github" + "gopkg.in/go-playground/webhooks" + "gopkg.in/go-playground/webhooks/github" ) const ( @@ -100,8 +100,8 @@ import ( "fmt" "strconv" - "github.com/joeybloggs/webhooks" - "github.com/joeybloggs/webhooks/github" + "gopkg.in/go-playground/webhooks" + "gopkg.in/go-playground/webhooks/github" ) const ( diff --git a/examples/multiple-handlers/main.go b/examples/multiple-handlers/main.go index 0989247..8fd1b42 100644 --- a/examples/multiple-handlers/main.go +++ b/examples/multiple-handlers/main.go @@ -4,8 +4,8 @@ import ( "fmt" "strconv" - "github.com/joeybloggs/webhooks" - "github.com/joeybloggs/webhooks/github" + "gopkg.in/go-playground/webhooks" + "gopkg.in/go-playground/webhooks/github" ) const ( diff --git a/examples/single-handler/main.go b/examples/single-handler/main.go index d19cb6e..c97998a 100644 --- a/examples/single-handler/main.go +++ b/examples/single-handler/main.go @@ -4,8 +4,8 @@ import ( "fmt" "strconv" - "github.com/joeybloggs/webhooks" - "github.com/joeybloggs/webhooks/github" + "gopkg.in/go-playground/webhooks" + "gopkg.in/go-playground/webhooks/github" ) const ( diff --git a/github/github.go b/github/github.go index 89807a4..7e96a34 100644 --- a/github/github.go +++ b/github/github.go @@ -8,7 +8,7 @@ import ( "io/ioutil" "net/http" - "github.com/joeybloggs/webhooks" + "gopkg.in/go-playground/webhooks" ) // Webhook instance contains all methods needed to process events diff --git a/github/github_test.go b/github/github_test.go index a71792e..e18497d 100644 --- a/github/github_test.go +++ b/github/github_test.go @@ -7,8 +7,8 @@ import ( "strconv" "testing" - "github.com/joeybloggs/webhooks" . "gopkg.in/go-playground/assert.v1" + "gopkg.in/go-playground/webhooks" ) // NOTES: diff --git a/webhooks.go b/webhooks.go index a2807b2..bcea7b5 100644 --- a/webhooks.go +++ b/webhooks.go @@ -61,7 +61,7 @@ func RunServer(s *http.Server, hook Webhook, path string) error { // RunTLSServer runs a custom server with TLS configuration. // NOTE: http.Server Handler will be overridden by this library, just set it to nil. // Setting the Certificates can be done in the http.Server.TLSConfig.Certificates -// see example here: https://github.com/joeybloggs/webhooks/blob/master/webhooks_test.go#L178 +// see example here: https://gopkg.in/go-playground/webhooks/blob/master/webhooks_test.go#L178 func RunTLSServer(s *http.Server, hook Webhook, path string) error { srv := &server{