You can also improve creating the commitMsg by using a slice and doing a strings.Join at the end