Golems are, with very scarce exceptions, immune to spells, except for a few that affect them normally or have different effects (an iron golem takes damage from rusting spells, an ice golem takes full damage from fire and is repaired by cold damage).
Most of the time, energy damage (fire, cold, acid, electric and sonic) is magic and thus out of the question when dealing with a golem, but some ways exist to deal energy damage that aren't, splash weapons are one of them.
What would happen if my character threw an acid vial or an alchemist's fire on a iron golem ? Are there any general rules about what type of energy damage a golem resists, even from a non-magical source ?