You should be aware that a goat with even a little motivation can clear a 4' fence like it was flat ground. Mine is electric, too.
Ours are pretty well trained - LOTS of pasture, and they know what side of the fence they are fed on - but every once in a while, they look real longingly at the...
All the dang time. I feed the goats first, then I feed the chickens on the opposite side of the barn.
and I don't feed ab libitum.
Even my adult 115# goats could get thru the pop door I made for my ducks. If the horns will fit, the body can follow. If you are free feeding, the only solution...