Check out example codes for "golang time.Add with variables". It will help you in understanding the concepts better.

Code Example 1

timein := time.Now().Local().Add(time.Hour * time.Duration(Hours) +
                                 time.Minute * time.Duration(Mins) +
                                 time.Second * time.Duration(Sec))

Learn ReactJs, React Native from akashmittal.com