My question is motivated by this post.
Let $f : \mathbb{C} \to \mathbb{C}$ be continuous and $f|_{\mathbb{C} \backslash S^1} :\mathbb{C} \backslash S^1 \to \mathbb{C}$ be holomorphic. I am trying to show that $f$ is entire, i.e. holomorphic everywhere.
My attempt: As the hint in the aforementioned post suggested, we'll try to use Morera: Let $\Omega := \mathbb{C}$ be the open set in Morera. Let $a,b,c \in \mathbb{C}$ and let $T$ be the convex hull of $a,b,c$. Then, we want to show that $\int_{\partial T}f(z)\,dz=0$ for all triangles $\partial T$.
If $\partial T \cap S^1 = \emptyset$, then $\int_{\partial T}f(z)\,dz=0$ anyway. So assume $\partial T \cap S^1 \neq \emptyset$. Then, we see that $\#(\partial T \cap S^1) \leq 6$, since each edge of $\partial T$ has at most two points of intersection with $S^1$. Let $I := \partial T \cap S^1$. Assume w.l.o.g. $\#I=1$ and that this one point of intersection lies in the middle of the edge connecting $a$ and $b$. Then, because $I$ is just a single point, we can write \begin{align} \int_{\partial T}f(z)\,dz &= \int_{\partial T \backslash I}f(z)\,dz = 0, \end{align} where the last equality follows from Goursat. This is the part where I'm confused. My idea was that this would work similarly to Riemann integrals over $\mathbb{R}$, where it is possible to integrate a function $g : [0,1]\to\mathbb{R}$ if $g$ has finitely many points where $g$ is not differentiable. So it seemed like it would be okay to integrate over $\partial T\backslash I$, because it is almost a closed curve, on which $f$ is differentiable.
Am I missing something, or does anybody have any suggestions as to how I can finish my proof more rigorously?
