go lang compare time hours code example
Example: golang time comparision
func inTimeSpan(start, end, check time.Time) bool {
return check.After(start) && check.Before(end)
}
func inTimeSpan(start, end, check time.Time) bool {
return check.After(start) && check.Before(end)
}