diff --git a/README.md b/README.md index e73a554..4c66fea 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Library webhooks ================ [![Coverage Status](https://coveralls.io/repos/go-playground/webhooks/badge.svg?branch=v1&service=github)](https://coveralls.io/github/go-playground/webhooks?branch=v1) -[![GoDoc](https://godoc.org/gopkg.in/go-playground/webhooks?status.svg)](https://godoc.org/gopkg.in/go-playground/webhooks) +[![GoDoc](https://godoc.org/gopkg.in/go-playground/webhooks.v1?status.svg)](https://godoc.org/gopkg.in/go-playground/webhooks.v1) Library webhooks allows for easy recieving and parsing of GitHub Webhook Events; more services to come i.e. BitBucket... @@ -20,20 +20,20 @@ Installation Use go get. - go get gopkg.in/go-playground/webhooks + go get gopkg.in/go-playground/webhooks.v1 or to update - go get -u gopkg.in/go-playground/webhooks + go get -u gopkg.in/go-playground/webhooks.v1 Then import the validator package into your own code. - import "gopkg.in/go-playground/webhooks" + import "gopkg.in/go-playground/webhooks.v1" Usage and documentation ------ -Please see http://godoc.org/gopkg.in/go-playground/webhooks for detailed usage docs. +Please see http://godoc.org/gopkg.in/go-playground/webhooks.v1 for detailed usage docs. ##### Examples: @@ -45,8 +45,8 @@ import ( "fmt" "strconv" - "gopkg.in/go-playground/webhooks" - "gopkg.in/go-playground/webhooks/github" + "gopkg.in/go-playground/webhooks.v1" + "gopkg.in/go-playground/webhooks.v1/github" ) const ( @@ -101,8 +101,8 @@ import ( "fmt" "strconv" - "gopkg.in/go-playground/webhooks" - "gopkg.in/go-playground/webhooks/github" + "gopkg.in/go-playground/webhooks.v1" + "gopkg.in/go-playground/webhooks.v1/github" ) const ( diff --git a/examples/multiple-handlers/main.go b/examples/multiple-handlers/main.go index 8fd1b42..4d17e08 100644 --- a/examples/multiple-handlers/main.go +++ b/examples/multiple-handlers/main.go @@ -4,8 +4,8 @@ import ( "fmt" "strconv" - "gopkg.in/go-playground/webhooks" - "gopkg.in/go-playground/webhooks/github" + "gopkg.in/go-playground/webhooks.v1" + "gopkg.in/go-playground/webhooks.v1/github" ) const ( diff --git a/examples/single-handler/main.go b/examples/single-handler/main.go index c97998a..5a60199 100644 --- a/examples/single-handler/main.go +++ b/examples/single-handler/main.go @@ -4,8 +4,8 @@ import ( "fmt" "strconv" - "gopkg.in/go-playground/webhooks" - "gopkg.in/go-playground/webhooks/github" + "gopkg.in/go-playground/webhooks.v1" + "gopkg.in/go-playground/webhooks.v1/github" ) const ( diff --git a/github/github.go b/github/github.go index 7e96a34..1709473 100644 --- a/github/github.go +++ b/github/github.go @@ -8,7 +8,7 @@ import ( "io/ioutil" "net/http" - "gopkg.in/go-playground/webhooks" + "gopkg.in/go-playground/webhooks.v1" ) // Webhook instance contains all methods needed to process events diff --git a/github/github_test.go b/github/github_test.go index e18497d..a220f7d 100644 --- a/github/github_test.go +++ b/github/github_test.go @@ -8,7 +8,7 @@ import ( "testing" . "gopkg.in/go-playground/assert.v1" - "gopkg.in/go-playground/webhooks" + "gopkg.in/go-playground/webhooks.v1" ) // NOTES: diff --git a/webhooks.go b/webhooks.go index bcea7b5..d95c7c8 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://gopkg.in/go-playground/webhooks/blob/master/webhooks_test.go#L178 +// see example here: https://gopkg.in/go-playground/webhooks.v1/blob/master/webhooks_test.go#L178 func RunTLSServer(s *http.Server, hook Webhook, path string) error { srv := &server{