Goldfish aren’t safe to feed snakes longterm, so if you do use them do so only to get the snake eating, then train it to take safer fish. Goldfish contain an enzyme called thiaminese that’s unsafe.
Here’s a good article about and a list of safe fish:
All About Thiaminase - Gartersnake.info