func verifyArgs() (bool, string) {
	var errMsg string
	var webhookURL string

	if *auth == "" {
		errMsg = "Invalid authentication! It must not be empty.\n"
		return false, errMsg
	}

	if *address == "" {
		errMsg = "Invalid URL! It must not be empty.\n"
		return false, errMsg
	}

	if *port < 1025 || *port > 65535 {
		errMsg = "Invalid port! Please, check it is between 1025 and 65535.\n"
		return false, errMsg
	}

	if *prefix != "" {
		*prefix = strings.Trim(*prefix, "/")
	}

	webhookURL = fmt.Sprintf("%s:%d", *address, *port)

	return true, webhookURL
}
// verifyArgs performs arguments validation and return webhook URL on success
verifyArgs performs arguments validation and return webhook URL on success
// verifyArgs performs arguments validation and return webhook URL on success
func verifyArgs() (bool, string) {
	var errMsg string
	var webhookURL string
	if *auth == "" {
		errMsg = "Invalid authentication! It must not be empty.\n"
		return false, errMsg
	}
	if *address == "" {
		errMsg = "Invalid URL! It must not be empty.\n"
		return false, errMsg
	}
	if *port < 1025 || *port > 65535 {
		errMsg = "Invalid port! Please, check it is between 1025 and 65535.\n"
		return false, errMsg
	}
	if *prefix != "" {
		*prefix = strings.Trim(*prefix, "/")
	}
	webhookURL = fmt.Sprintf("%s:%d", *address, *port)
	return true, webhookURL
}
func verifyArgs ( ) ( bool , string ) { var errMsg string var webhookURL string if * auth == " " { errMsg = " \n " return false , errMsg } if * address == " " { errMsg = " \n " return false , errMsg } if * port < 1025 || * port > 65535 { errMsg = " \n " return false , errMsg } if * prefix != " " { * prefix = strings . Trim ( * prefix , " " ) } webhookURL = fmt . Sprintf ( " " , * address , * port ) return true , webhookURL }
verifyArgs performs arguments validation and return webhook URL on success
verifyArgs performs arguments validation and return webhook URL on success