You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library has the Encode API take in a pointer to image.Image (*image.Image) instead of either the interface itself (which has an underlying value of a pointer) or a concrete struct such as *image.NRGBA. This is usually a bad idea.
The lines that use this "pointer to interface" seem to only dereference the interface and not change it:
This library has the Encode API take in a pointer to image.Image (
*image.Image
) instead of either the interface itself (which has an underlying value of a pointer) or a concrete struct such as*image.NRGBA
. This is usually a bad idea.The lines that use this "pointer to interface" seem to only dereference the interface and not change it:
https://github.com/buckket/go-blurhash/blob/master/encode.go#L110-L111
https://github.com/buckket/go-blurhash/blob/master/encode.go#L131
The text was updated successfully, but these errors were encountered: