func (Time) After会有所帮助,我相信。架构:when := time.Now()...if time.Now().After(when.Add(15*time.Minute)) { // Conditionally process something if at least 15 minutes elapsed}when例如,可以是某个结构的字段而不是变量。替代方法:deadline := time.Now().Add(15*time.Minute)...if time.Now().After(deadline) { // Conditionally process something if at least 15 minutes elapsed}我个人更喜欢后面的版本。