If $f$ is a $C^2$ function on an open set $A \subset \mathbb{C}$ containing $z=0$ and we define $$g(z_1):=\int_{0}^{z_1}F(z) dz + f(0),$$ where $z_1 \in A$ and $F(z):= \frac{\partial f}{\partial z}(z)$ is holomorphic, does this imply that
$$dg=\frac{\partial f}{\partial z} dz?$$
I saw this equivalence on a proof but I don’t know how to rigorously deduce it as I haven’t worked yet with total differentials in complex analysis. If that’s of any use, I know that we can prove that $g’(z)=f’(z)$.