Step 1: This is a first-order linear differential equation. The solution to such an equation is:
\[
v(t) = c e^{-\frac{k}{m} t} + \frac{mg}{k}.
\]
Step 2: The constant \( c \) is determined by initial conditions.
Final Answer:
\[
\boxed{c e^{-\frac{k}{m} t} + \frac{mg}{k}}
\]