Welcome to BYC! 
I would have to agree with the above posters, the best way to get them to coexist is to keep them separate. I had a doe that didn't mind them at all, and another that sought to kill them whenever she saw them. After about a year, she would tolerate the dogs in the large 2 acre pasture (and by tolerate i mean she only chased them if they came too close to her, and didn't try to corner them anymore). But she would try to kill them when they would go into the pen. 
You want to be really careful though with goats and dogs, because goats can do some serious damage to a dog, and if in pain, a dog can do some serious damage to a goat, even a good dog. So just be careful and watch closely whenever the goats and dogs are near each other. And play it safe and keep them separate.