constants

package
v0.0.0-...-acfe09f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MIMEPNG  = "image/png"
	MIMEJPEG = "image/jpeg"
	MIMEWEBP = "image/webp"
	MIMEGIF  = "image/gif"
	MIMESVG  = "image/svg+xml"
)

MIME types for known image formats

Variables

This section is empty.

Functions

func MIMEList

func MIMEList() []string

MIMEList is the MIMT ype list of all known image formats in order of preference

Types

type Format

type Format int

Format represents a detected image format

const (
	Unknown Format = iota
	Auto
	PNG
	JPEG
	WEBP
	GIF
	MONO
	SVG
)

Known image formats

func (Format) MIMEString

func (f Format) MIMEString() string

func (Format) String

func (i Format) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL