Captain Hook - Web hook server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

19 lines
267 B

package main
import (
"log"
)
// Check errors and fail if they're bad
func check(err error) {
if err != nil {
log.Fatal(err)
}
}
// Check if a value exists and fail if it doesn't
func checkExists(exists bool, msg string) {
if !exists {
log.Fatal(msg)
}
}