clippings

package
v0.0.0-...-3674004 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2016 License: MIT Imports: 6 Imported by: 3

Documentation

Overview

Package clippings provides a Reader for the Kindle's clipping format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clipping

type Clipping struct {
	Title    string
	Author   string
	Type     string
	Page     *int   `json:",omitempty"`
	Location *Range `json:",omitempty"`
	Datetime time.Time
	Content  string
}

func Filter

func Filter(items []Clipping, onlyType string) []Clipping

type Range

type Range struct {
	From, To int
}

type Reader

type Reader struct {
	*bufio.Reader
}

func NewReader

func NewReader(r io.Reader) *Reader

func (*Reader) Read

func (r *Reader) Read() (clipping Clipping, err error)

func (*Reader) ReadAll

func (r *Reader) ReadAll() (clippings []Clipping, err error)

Jump to

Keyboard shortcuts

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