示例#1
0
func mustPublish(record string) {
	err := mdns.Publish(record)
	if err != nil {
		log.Fatalf(`Unable to publish record "%s": %s`, record, err)
	}
}
示例#2
0
func mustPublish(rr string) {
	if err := mdns.Publish(rr); err != nil {
		log.Fatalf(`Unable to publish record "%s": %v`, rr, err)
	}
}