are goats friendly with dogs?
Depends on the goat and dog; similar to you and a dog. Do they know each other, the attitude of the dog.
We have often taken dogs on the trail, no problem.
Some dogs are raised and used to protect / gaurd goats like a Great Pyrenees.
Dogs that do not know the goats or what they are are the biggest trouble; these dogs are more problems in the woods than lions, tigers and bears.

Here is a picture of what happens to a goat from a kid friendly Shar-Pei.

Dog in doggy hell now.