func (p *Publisher) Publish(request types.PublishRequest) error {
	log.Println("[DEBUG] pact publisher: publish pact")

	if p.pactClient == nil {
		c := NewClient()
		p.pactClient = c
	}

	err := request.Validate()

	if err != nil {
		return err
	}

	return p.pactClient.PublishPacts(request)
}
func (p *Publisher) Publish(request types.PublishRequest) error {
	log.Println("[DEBUG] pact publisher: publish pact")

	if p.pactClient == nil {
		c := NewClient()
		p.pactClient = c
	}

	err := request.Validate()

	if err != nil {
		return err
	}

	return p.pactClient.PublishPacts(request)
}
func ( p * Publisher ) Publish ( request types . PublishRequest ) error { log . Println ( " " ) if p . pactClient == nil { c := NewClient ( ) p . pactClient = c } err := request . Validate ( ) if err != nil { return err } return p . pactClient . PublishPacts ( request ) }
// Publish sends the Pacts to a broker, optionally tagging them
Publish sends the Pacts to a broker optionally tagging them