I want to show that if $$f:\mathbb{C}\rightarrow\mathbb{C}\setminus\{z\in\mathbb{C}:\Im(z)=0\text{ and }\Re(z)\ge 0\}$$ is holomorphic, then f is constant.
I tried to show that $f$ is bounded, then I can use Liouville's theorem.
Is this the right way and how can I see that $f$ is bounded?
Hint- you have a holomorphic branch of the logarithm in the given region. Now compose maps.
Alternatively, use the square root function to map the slit plane to the upper half plane, and then use the standard transformation that takes the UHP to the unit disk.