For a set $A\subset C([0, 1])$, write
$$
A^\bot:=\left\{ f\in C([0, 1])\ : \int_0^1 fg\, dx=0, \ \forall g\in A\right\}.$$
Now, let $G=\{g_n\ :\ n\in\mathbb N\}$; your question is rewritten as follows.
What conditions guarantee that $G^\bot=\{0\}$?
This notation strongly hints at Hilbert space theory. Indeed, since $$A^{\bot \bot}= \overline{\operatorname{span } A},$$
where $\overline{\operatorname{span}A}$ denotes the closure in $L^2(0, 1)$ of the linear span of $A$, we have that
$$
G^\bot=\{0\} \quad \iff \quad \overline{\operatorname{span } G}= \{0\}^\bot=L^2(0, 1).$$
The sought condition is, thus, that $\operatorname{span}G$ is dense in $L^2(0, 1)$.
Since $C([0, 1])$ is itself dense in $L^2(0, 1)$, it suffices to check that $\operatorname{span}G$ is dense in $C([0, 1])$, but with respect to the $L^2$ norm.
Final remark. Usually, it is more difficult to prove that $\operatorname{span}G$ is dense than to prove that $G^\bot=\{0\}$.