how to find difference b/w 2 times golang code example Example: how to find difference b/w 2 times golang diff := time2.Sub(time1).Seconds()