My Saanens got access to the garden via electric fence until their field was finished.
The first few times they got shocked, they blasted through the fence, they don't have the same instinct to recoil as sheep and do push against things (same with the sheepdog!).
However, after they'd figured out this white wire stuff hurts, they were very good at keeping away from it.
I wouldn't trust them fully, as something could still frighten them into running, and I wouldn't think it would necessarily stop them if they were determined, but neither will traditional fencing with stubborn goats!
I do believe it's been mentioned before, but the thicker tape/rope is probably better, as they respect it better if they can see it coming!
All the best
Suzanne