First, I strongly prefer 6-strand High Tensile Electric, with Wires 1,3,5 (from the ground) being HOT and wires 2,4,6 being GROUND. I space the wires on an even 8-inch spacing. God and I have both dropped trees on this type of fence and it held the weight of a 12" diameter red oak without allowing the goats or pigs to escape.
New goats do have to be trained to electric. The quickest way is to halter them with a 10' leash and tie them to the middle GROUND wire. When they dart under or through the fence, you drag them back the way they came, making sure they get the "message" or 6,000 reasons not to do something stupid
Speaking of 6,000 reasons, 6 kv (aka 6,000 volts) is the minimum for fencing goats in my opinion. 8kv, or 10kv or even 12kv is even better. They higher the better, the quicker and more permanently they learn. I highly recommend the Kencove Fence Compass. I won't be without it.
Having said all that . . . I have 20+ acres leased with 10 cows and 15 goats. It came with 3-5 strands of Barbwire, so I added 2-3 strands of high tensile electric between and slightly inset of the barbwire. The goats have never gotten out, but a couple of newborn calves did . . . once. They had a little trouble getting back in, but have never even considered attempting that stunt, ever again!!!
After having the fence fully powered for a year, the deer have finally been leaving me alone. Now, they either jump OVER the fence, or go somewhere else to graze. I always consider my youngest/smallest goat to be "coyote bait", but haven't lost it, yet. Honestly, while there might be a few places in the fence where I coyote could get through if it were determined, having a super-hot bottom wire should discourage coyotes and dogs from entering the field twice.
Finally, Nigerian Dwarf goats are too small for my setup and Pygmies are too clever. I actually do have a pygmy wether, but I quickly sold 5 pygmy does that continually attempted to outsmart me.