writeas / go-epub

Go library for creating EPUB files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Coverage Status Go Report Card License GoDoc

Features

  • Documented API
  • Creates valid EPUB 3.0 files
  • Adds an additional EPUB 2.0 table of contents (as seen here) for maximum compatibility
  • Includes support for adding CSS, images, and fonts

For an example of actual usage, see https://github.com/bmaupin/go-docs-epub

Installation

go get github.com/writeas/go-epub

Development

go get github.com/writeas/go-epub
cd $GOPATH/src/github.com/writeas/go-epub

Dependencies are managed using Go modules

Testing

  1. (Optional) Install EpubCheck

    wget https://github.com/IDPF/epubcheck/releases/download/v4.0.2/epubcheck-4.0.2.zip
    unzip epubcheck-4.0.2.zip
    
  2. Run tests

    go test
    

About

Go library for creating EPUB files

License:MIT License


Languages

Language:Go 100.0%