Gotimetime.Until

Returns the duration until t.

문법

time.Until(t time.Time) time.Duration