Minecraft wiki entry for damage, associated text: Let villager named villager_1 to deal 1 damage to nearby iron golem(s):
/damage @e[type=iron_golem] 1 entity_attack entity @e[type=villager, name="villager_1"]