Let $g\in L^{\infty}([0,1])$ (with respesct to Lebesgue measure). Prove that if $$\int_{[0,1]} f(x)g(x) = 0$$ for all continuous functions $f$ on $[0,1]$ then $g(x) =0$ almost everywhere.
I usually do not post without an attempted proof but I am completely lost with this one, a detailed solution should help me but any thing is grealtly appreciated.