When we had goats as a kid we just used a wooden fence, 4x4 posts with wood boards running between them every six inches or so we rarely had a problem with it.I would never suggest barbed wire to cage any animal.