Add customizable Logger interface + info,error and debugs (#14)

* Add customizable Logger interface + info,error and debugs
* update travis.yml to atest golang versions
This commit is contained in:
Dean Karn
2017-07-15 12:12:11 -07:00
committed by GitHub
parent 9a8b92d028
commit a5141d656b
11 changed files with 161 additions and 22 deletions
-2
View File
@@ -14,7 +14,6 @@ const (
)
func main() {
hook := github.New(&github.Config{Secret: "MyGitHubSuperSecretSecrect...?"})
hook.RegisterEvents(HandleMultiple, github.ReleaseEvent, github.PullRequestEvent) // Add as many as you want
@@ -26,7 +25,6 @@ func main() {
// HandleMultiple handles multiple GitHub events
func HandleMultiple(payload interface{}, header webhooks.Header) {
fmt.Println("Handling Payload..")
switch payload.(type) {