Q:

golang time comparision

func inTimeSpan(start, end, check time.Time) bool {
    return check.After(start) && check.Before(end)
}
0

New to Communities?

Join the community