Versions in this module Expand all Collapse all v1 v1.0.0 Apr 21, 2019 Changes in this version + var ErrMsgUnsupportedImageFormat = "unsupported image format" + func IsGIF(r io.ReadSeeker) (bool, error) + func IsImage(r io.ReadSeeker) (isValid bool, mimeType string, err error) + func IsJPG(r io.ReadSeeker) (bool, error) + func IsPNG(r io.ReadSeeker) (bool, error) + func MimeType(r io.ReadSeeker) (string, error) + func SHA256Sum(r io.ReadSeeker) (hash string, err error) + func ValidateImage(r io.ReadSeeker, decode ImageDecoder) (bool, error) + type FileValidator func(r io.ReadSeeker) (bool, error) + type ImageDecoder func(r io.Reader) (image.Image, error)