Versions in this module Expand all Collapse all v0 v0.1.1 Jul 18, 2026 v0.1.0 Jul 18, 2026 Changes in this version + func Generate(ctx context.Context, in Input) ([]byte, error) + func GenerateKepub(ctx context.Context, in Input) ([]byte, error) + func ImageSize(data []byte, mime string) (width, height int, ok bool) + func ToKepub(data []byte) ([]byte, error) + type Chapter struct + Author string + ExcludeFromToc bool + HTML string + SkipTitle bool + Title string + type CoverMeta struct + Author string + Title string + type CoverTransform func(ctx context.Context, cover *RawImage, meta CoverMeta) (*RawImage, error) + type ImageTransform func(ctx context.Context, img RawImage) (*RawImage, error) + type Input struct + Authors []string + CSS string + Chapters []Chapter + Client *http.Client + CoverBackground string + CoverData []byte + CoverFromLeadImage bool + CoverURL string + Date string + Description string + ID string + Language string + NoCSS bool + NoDownloadImages bool + NoToc bool + Publisher string + Series string + SeriesIndex *float64 + Title string + TocTitle string + TransformCover CoverTransform + TransformImage ImageTransform + type RawImage struct + Data []byte + Mime string