Who was the golden deer in the Ramayana?

The golden deer was Maricha, a demon once struck by Rama's arrow and flung into the sea.
He survived, gave up violence, and lived as a hermit, terrified of Rama.
Then Ravana ordered him to become a golden deer, and lure Rama away from Sita. Maricha begged him to stop. Ravana said: obey, or die.
So Maricha chose to die by Rama's arrow instead.
As he fell, he cried out in Rama's own voice. And the trap was sprung.
Source: Valmiki Ramayana. Episodes found only in later retellings are marked as such.