Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrImageDataTooShort = errors.New("image data is too short")
)
Functions ¶
func MustParseHexStr ¶
Types ¶
type ImageFormat ¶
type ImageFormat uint32
const ( Unknown ImageFormat = 0000 Jpeg ImageFormat = 1000 Png ImageFormat = 1001 Gif ImageFormat = 2000 Webp ImageFormat = 1002 Bmp ImageFormat = 1005 Tiff ImageFormat = 1006 )
func ImageResolve ¶
func ImageResolve(image []byte) (format ImageFormat, size imgsz.Size, err error)
func (ImageFormat) String ¶
func (format ImageFormat) String() string
type StringInterner ¶
type StringInterner struct {
// contains filtered or unexported fields
}
func NewStringInterner ¶
func NewStringInterner() *StringInterner
func (*StringInterner) Intern ¶
func (i *StringInterner) Intern(s string) string
Click to show internal directories.
Click to hide internal directories.