Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ImageTypeJPEG JPEG format ImageTypeJPEG string = "image/jpeg" // ImageTypePNG PNG format ImageTypePNG string = "image/png" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generic ¶
type Generic struct {
// contains filtered or unexported fields
}
Generic holds binary data defined by its MIME type.
func NewGeneric ¶
NewGeneric creates a new Generic object.
type JPEGImage ¶
type JPEGImage []byte
JPEGImage holds the binary data of a JPEG image.
type Media ¶
type Media interface { // Base64URL is the media encoded as a base64 URL. Base64URL() string // MIME returns the media's MIME type. MIME() string // Data returns the media's raw data. Data() []byte }
Media holds a piece of binary data.
Click to show internal directories.
Click to hide internal directories.