Former Brooklyn Borough President Howard Golden is leaving his controversial $125,000-a-year job in the Brooklyn DA’s office after just nine months, The Post has learned.

Golden’s hiring last January to a newly created post of executive director for civic and governmental affairs raised an outcry in some quarters since he was being paid more than most assistant DAs, while also collecting a substantial city pension.

“He’s resigned as of the end of this month,” confirmed Jerry Schmetterer, a spokesman for Brooklyn DA Charles J. Hynes.

Critics charged that Golden, who served as Brooklyn beep for 25 years, seemed to be reaping the rewards of being a longtime political supporter of Hynes.

Golden’s hefty salary also drew attention when Hynes was forced to lay off 17 prosecutors and other support personnel last month to meet a directive from the mayor’s office targeting a 15 percent budget reduction in every DA’s office.

Hynes also delayed the hiring of 52 new lawyers for four months to save nearly $800,000 more in salaries.

Hynes’ office ended the fiscal year ending June 30 with a $4.8 million deficit.

Claire Shulman of Queens, another veteran borough president forced out by term limits at the same time as Golden, serves several organizations in her borough on a pro bono basis.