Your goldfish is suffering from an ailment called Septicemia.
The way to treat this is by isolating the affected fish in a quarantine tank and administering a medicine called Maracyn-Two.
Make sure to use water from the main tank/pond in the quarantine tank.
the addition of aquarium salt will also help.
Good luck!
.
YOUR TROPICAL FISH RESOURCE
OVER 20 YEARS EXPERIENCE W/TROPICAL FISH---BREEDING, MAINTAINING, CURING