Well, with goats:
Oak is fine if not too much at once, the leaves have high tannin levels which can give them stomach ache and constipation. Too much ash causes scouring and too much sycamore can cause bloat (as sugary), all are fine in smallish quantities. No evergreens though the odd strand of ivy is fine.
Ok on hawthorn, rowan, beech, birch, willow.
Avoid the seeds and berries of all of them.