Registry /
networking / go-playground-webhooks-v6
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
webhooks
✓ github.com/go-playground/webhooks/v6
Handle GitHub push webhooks
package main
import (
"net/http"
"github.com/go-playground/webhooks/v6/github"
)
func main() {
hook, _ := github.New(github.Options.Secret("mysecret"))
http.HandleFunc("/webhooks", func(w http.ResponseWriter, r *http.Request) {
payload, _ := hook.Parse(r, github.PushEvent)
// handle payload
})
http.ListenAndServe(":8080", nil)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
6.4.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.