I need to know if this statement is true or false:
If $g\circ f$ is injective then $g$ is injective.
I couldn't try to prove this statement. I was thinking to show a counter-example: $$\begin{array}{lll} f\colon\{1\}\to\{2,3\},&f(1)=1&\\g\colon\{2,3\}\to\{1\},&g(2)=1,&g(3)=1 \end{array}$$ But then I can't seem to show that $g\circ f$ is injective.
I would really appreciate any help on this. Thanks in advance.