func verify(request events.APIGatewayProxyRequest, sc string) error {
	body := request.Body
	header := http.Header{}
	for k, v := range request.Headers {
		header.Set(k, v)
	}

	sv, err := slack.NewSecretsVerifier(header, sc)
	if err != nil {
		return err
	}

	sv.Write([]byte(body))
	return sv.Ensure()
}
// verify returns the result of slack signing secret verification.
verify returns the result of slack signing secret verification.
// verify returns the result of slack signing secret verification .
func verify(request events.APIGatewayProxyRequest, sc string) error {
	body := request.Body
	header := http.Header{}
	for k, v := range request.Headers {
		header.Set(k, v)
	}
	sv, err := slack.NewSecretsVerifier(header, sc)
	if err != nil {
		return err
	}
	sv.Write([]byte(body))
	return sv.Ensure()
}
func verify ( request events . APIGatewayProxyRequest , sc string ) error { body := request . Body header := http . Header { } for k , v := range request . Headers { header . Set ( k , v ) } sv , err := slack . NewSecretsVerifier ( header , sc ) if err != nil { return err } sv . Write ( [ ] byte ( body ) ) return sv . Ensure ( ) }
verify returns the result of slack signing secret verification.
verify returns the result of slack signing secret verification .