I’m trying to understand a step on this answer:
So $f\colon \Omega\to{\mathbb C}$ is $C^1$ and satisfies the CR equations; therefore it is an analytic function of $z=x+iy\in\Omega$.
Assume that $\Omega$ is simply connected and chose a point $z_0\in\Omega$. Then by a standard theorem of complex analysis the function $$F(z)\ :=\ h(z_0)+\int_\gamma f(z)\ dz\ , \qquad \hbox{$\gamma\ $ a path from $z_0$ to $z$}\ ,$$ is an analytic primitive of $f$ in $\Omega$.
More concretely, I’m trying to understand why the function $F$ is well-defined and why is it a primitive of $f$.
My complex analysis is a bit rusty and I don’t immediately see what standard theorem is being referred to here. Is it Cauchy’s integral theorem (also called Cauchy-Goursat’s theorem)? I thought so because I found the same proof (with a bit more detail) on these notes (Theorem 5.3) and Cauchy’s theorem seems to be mentioned there as a justification for that step, but I don’t understand yet how it can be applied. Any help would be appreciated.