Christopher - I used to have a smallholding and kept a herd of dairy goats.
If you wish to keep goats can I recommend that you attend a course in goat keeping - if you google you should be able to find a course in your area..
Goats require a lot of attention, they have to be regularly wormed with appropriate medication and their hooves have to be regularly trimmed by someone who knows how to do this. You also need to know some specifics about goat husbandry and their health, and of course if you intend to milk your goats you will also need to know about mating and assisting at kidding time, when to call the vet etc. If you are not an experienced hand-milker you'll need to learn how to do that and dairying skills so that you know how to process milk to keep it safe for consumption.
There are Government regulations which apply to the keeping of sheep and goats, whether they are kept as pets or commercially. https://www.gov.uk/sheep-and-goats-identification-registration-and-movement and also regulations as to their welfare https://www.gov.uk/sheep-and-goat-
Also the type of housing and fencing of land needed for goats to be safe, healthy and for them not to cause damage to your own property or that of others, needs to be properly designed and built.
Check out the British Goat Society website http://www.allgoats.com/index.html , talk to local members and find a recommended goatkeeping course in your area.
Regarding your query about goats - if your goats are properly kept they will not have intestinal worms - you will be worming them regularly with a vermicide recommended by your vet. Goat manure is very good indeed for composting and growing vegetables.
If you have any more questions I'd be pleased to help.