Text this: Generalized holographic dark energy and bouncing cosmology in Gauss–Bonnet gravity