Snails are herbivores or detritivores, meaning they primarily eat plants and decaying organic matter. Goldfish, on the other hand, are fish and are much larger than snails. Snails lack the necessary teeth and digestive system to consume fish.
While a snail might try to nibble on a goldfish's scales, it would be unable to do any significant damage.