Goldstein told reporters that he was aware of Feeley's planned departure in advance, even before Trump's alleged use of the term.
"My instructors made clear that if I believed I could not do that, I would be honor bound to resign", Feeley continued. "That time has come", he added.
Reached by TWS, the State Department declined to comment on whether the excerpt was genuine.
#Oprah2020 presidential run possibility?
Seal's post seemed to take aim at Oprah after her acceptance speech for the prestigious Cecil B. DeMille award at the Golden Globes .
So widespread was the disinformation, that the State Department issued a statement correcting the record.
"Everyone has a line that they don't want to cross and we respect that", Goldstein said. According to the letter, the U.S. ambassador leaves his position with a feeling of vast gratitude to the foreign government and the citizens of Panama who shared a relationship of mutual friendship, respect and teamwork.
Various press reports in Panama said Feeleys decision to leave the post was made before reports of Trumps offensive remarks.
News of Feeley's resignation comes a day after Trump's comments about immigration and developing countries, where Trump questioned why the US would accept more immigrants from Haiti and "shithole countries" in Africa.
Feeley was also a vocal supporter of former U.S. Ambassador to the Dominican Republic Wally Brewster, whose appointment generated a backlash because Brewster is married to a man.