GenerateImage() method was changed to be private.

This commit is contained in:
Alexander Andreev 2022-06-26 21:00:06 +04:00
parent 3ebfcb2c95
commit a23c80ae88
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -25,7 +25,7 @@ func NewDwellingCaptcha(expiry time.Duration) *DwellingCaptcha {
ExpireIn: ExpiryDate(expiry)}}
}
func (c *DwellingCaptcha) GenerateImage() *image.Image {
func (c *DwellingCaptcha) generateImage() *image.Image {
ctx := gg.NewContext(dwImageWidth, dwImageHeight)
// fill background
@ -67,7 +67,7 @@ func (c *DwellingCaptcha) GenerateImage() *image.Image {
func (c *DwellingCaptcha) GetImage() *image.Image {
if c.Image == nil {
return c.GenerateImage()
return c.generateImage()
}
return &c.Image