resource

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioFile

type AudioFile string

AudioFile represents an MPEG audio resource (MP3).

func (AudioFile) Mediatype

func (AudioFile) Mediatype() string

type FontFile

type FontFile string

FontFile represents an OpenType font resource used for document styling.

func (FontFile) Mediatype

func (f FontFile) Mediatype() string

type GifFile

type GifFile string

GifFile represents a GIF image resource.

func (GifFile) Mediatype

func (GifFile) Mediatype() string

type Image

type Image interface {
	Resource
	// contains filtered or unexported methods
}

Image represents a resource specifically classified as an image format, such as JPEG, PNG, GIF, or SVG.

type JpgFile

type JpgFile string

JpgFile represents a JPEG image resource.

func (JpgFile) Mediatype

func (JpgFile) Mediatype() string

type PngFile

type PngFile string

PngFile represents a Portable Network Graphics resource.

func (PngFile) Mediatype

func (PngFile) Mediatype() string

type Resource

type Resource interface {
	Mediatype() string
	// contains filtered or unexported methods
}

Resource represents any asset that can be included in an EPUB. It requires a valid MIME media type.

type SvgFile

type SvgFile string

SvgFile represents a Scalable Vector Graphics resource.

func (SvgFile) Mediatype

func (SvgFile) Mediatype() string

type VideoFile

type VideoFile string

VideoFile represents an MP4 video resource.

func (VideoFile) Mediatype

func (VideoFile) Mediatype() string

Jump to

Keyboard shortcuts

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