Nice dogs.
I have a friend in MN who lives in an underground house. Most of the roof is grass. For many years he kept a herd of goats who ate the roof and my friend sold the milk.
I wish that I had a couple of goats, but they are hard to contain. They climb fences and would destroy my vegetable garden, I fear.
My goats have never climbed a fence. Goats will, every time, exploit weaknesses in their enclosure, but if you have a solid fence and keep it maintained, the goats are not difficult to contain. It also helps that they have adequate food and something to jump around on to entertain themselves. A bored, hungry goat will look for something to get into and who could blame him/her? My goats have been out without permission only once in several years, and it was my fault because of a flaw in joining a corner of fencing. We stacked up some old concrete culverts into a pyramid that the goats climb and play king of the hill. Not only does it provide entertainment, jumping around on the concrete helps keep their hooves trimmed.
A cousin of mine has a pair of goats that follow him everywhere on his farm including when he’s riding the tractor. They are more like dogs than goats. They hang out under the porch when he is inside and he pens them up at night.