Skip to content
Go library for creating EPUB files
Go
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
testdata Add better testing for font mime types Aug 19, 2019
.gitignore Clean up .gitignore Oct 3, 2018
.travis.yml Explicitly test with golang v1.12 Jul 20, 2019
LICENSE Switch to MIT license May 21, 2016
README.md Update readme to reflect usage of Go modules Oct 3, 2018
epub.go add support of EPUB description field Jul 18, 2019
epub_test.go Add better testing for font mime types Aug 19, 2019
example_test.go Add example test for SetIdentifier Aug 25, 2016
go.mod Add files for Go modules (fixes #6) Oct 3, 2018
go.sum Add files for Go modules (fixes #6) Oct 3, 2018
pkg.go
toc.go Optimized for Windows OS (see #4) Feb 20, 2018
write.go Fix otf/ttf mimetypes Aug 19, 2019
xhtml.go Make AddCSS API more consistent with AddFont and AddImage Jun 9, 2016

README.md

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/bmaupin/go-epub

Development

go get github.com/bmaupin/go-epub
cd $GOPATH/src/github.com/bmaupin/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
    
You can’t perform that action at this time.