When Use NewWebhookWithCert , I need to specify URL.
func NewWebhookWithCert(link string, file interface{}) WebhookConfig {
u, _ := url.Parse(link)
return WebhookConfig{
URL: u,
Certificate: file,
}
}
func (config WebhookConfig) useExistingFile() bool {
return config.URL != nil
}