My fence is in no condition to contain anything. But, some day...
I had a neighbor in Washington State who bought a goat. They kept it tied in the back to eat up all the undergrowth in the woods. My dog started barking one night — she was indoors with me. She just wouldn’t shut up. A pack of feral dogs attacked my neighbor’s goat on its tether and killed it. I felt terrible that I hadn’t gone out, but I was alone in the woods and we had mountain lions, bear, etc.
My neighbors were stupid people. I was glad to move away.
I now have two miniature donkeys that are guard animals for my goats, after an incident with a dog from a neighboring community. That dog is no longer a threat to anything.
Also, goats are very gregarious and to have just one is almost cruel, unless there are other animals that will actually play and keep it company.