The chemical reactions and pathways involving glycolate, the anion of hydroxyethanoic acid (glycolic acid).