From 2e3d41a62802a1fd944d51ab82b1565e92e787ca Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 26 Jun 2022 20:47:25 +0400 Subject: [PATCH] Changed Expire() method in ICaptcha to Expiry(). ExpireDate() changed to ExpiryDate() and its argument expiration changed to expiry. --- internal/captcha/captcha.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/captcha/captcha.go b/internal/captcha/captcha.go index efe6eb1..31e3b2a 100644 --- a/internal/captcha/captcha.go +++ b/internal/captcha/captcha.go @@ -24,7 +24,7 @@ type ICaptcha interface { GetAnswer() Answer Solve(answer Answer) bool IsSolved() bool - Expire() time.Time + Expiry() time.Time } type Captcha struct { @@ -39,6 +39,6 @@ func GenerateAnswer() Answer { return (Answer(ans.String())) } -func ExpireDate(expiration time.Duration) time.Time { - return time.Now().Add(expiration) +func ExpiryDate(expiry time.Duration) time.Time { + return time.Now().Add(expiry) }