A general approach combining diazonium salts and click chemistries for gold surface functionalization by nanoparticle assemblies.