enex

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package enex specifically handles Evernote export files. The file is a specialized XML format called ENEX. More info can be found at https://evernote.com/blog/how-evernotes-xml-export-format-works/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileRepo

func NewFileRepo() (entity.RepoLocal, error)

NewFileRepo constructs a File.

func ReadPrintFile

func ReadPrintFile(ctx context.Context, opts *FileOpts) (err error)

ReadPrintFile provides a way to parse and inspect an Evernote export file (in ENEX format) as golang values.

Types

type File

type File struct{}

File implements the local repository interface for enex files.

func (*File) ReadLocal

func (f *File) ReadLocal(ctx context.Context, r io.Reader) (out []entity.LinkID, err error)

ReadLocal reads and parses an enex file.

type FileOpts

type FileOpts struct {
	Filename    string
	PrettyPrint bool
}

FileOpts is named options for handling local enex files.

type Note

type Note struct {
	*entity.Note
	*entity.ServiceID
}

A Note is a note entity in an enex file.

func (*Note) HTMLContent

func (n *Note) HTMLContent() (string, error)

HTMLContent extracts the HTML from the note content.

func (*Note) LinkValues

func (n *Note) LinkValues() []string

Jump to

Keyboard shortcuts

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