Skip to content

Golang library for interacting with Mobipocket ebook files

License

Notifications You must be signed in to change notification settings

clee/gobipocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mobipocket (for golang)

This is a library designed to make it possible to read some of the metadata from a Mobipocket-formatted file (or Kindle ebook) using the Go programming language. The current API is limited to just the Open and Metadata calls; you can use them like this:

package main

import (
	"fmt"
	"flag"
	"github.com/clee/gobipocket"
)

func main() {
	flag.Parse()
	path := flag.Arg(0)
	m, err := mobipocket.Open(path)
	if err != nil {
		panic(err)
	}

	for k, v := range m.Metadata {
		fmt.Printf("%s: %s\n", k, v)
	}
}

About

Golang library for interacting with Mobipocket ebook files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages