I agree with what Olympia posted.... And.....
The Goldfish is a cold water species and the Betta is a tropical species-that alone is the reason the two species shouldn't be kept together.
Proper stocking should be based on more than if the fish can/will injury each other or not...You should also consider-adult size when grown, water temp needs, social needs, territory needs, feeding issues, chemistry needs...etc.....Just because one doesn't eat the other doesn't make it successful or right......Especially since our goal should be a thriving fish that live to its fullest and expected longevity......