x.Sub(time.Now())
instead of time.Until(x)
SCC-S1024153 return dict, nil
154 },
155 "until": func(t time.Time) string {
156 return t.Sub(time.Now()).String()157 },
158 "dereference": func(a *int) int {
159 if a == nil {
The time.Until
helper has the same effect as using x.Sub(time.Now())
. The
former is easier to read.
x.Sub(time.Now())
time.Until(x)