golang if time greater than 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)
}