INNER CODE UNIT · Go

main

alexellis/derek · main.go:36

func main() {
	validateHmac := hmacValidation()

	requestRaw, _ := ioutil.ReadAll(os.Stdin)

	xHubSignature256 := os.Getenv("Http_X_Hub_Signature_256")

	if validateHmac && len(xHubSignature256) == 0 {
		os.Stderr.Write([]byte("must provide X_Hub_Signature_256"))
		os.Exit(1)
	}

	config, configErr := config.NewConfig()
	if configErr != nil {
		os.Stderr.Write([]byte(configErr.Error()))
		os.Exit(1)
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…