1550s, "be taken or regarded as," also "be in favor of," from go (v.) + for (adv.). Meaning "attack, assail" is from 1880. Go for broke is from 1951, American English colloquial.
The same rules go for everyone
I go for this resolution