Discover Packages
github.com/amirgamil/apollo
pkg
apollo
sources
package
Version:
v0.0.0-...-c34d6d1
Opens a new window with list of versions in this module.
Published: Aug 26, 2021
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
TODO: make sourcesMap a global so we don't keep passing large maps in parameters
TODO: should return map[string]schema.Data so we have control over the IDs
type Book struct {
ASIN string `json:"asin"`
Authors string `json:"authors"`
Highlights []Highlight `json:"highlights"`
Title string `json:"title"`
}
define the schemas here because they're only applicable to the kindle file
type EpisodeXML struct {
Title string `xml:"title"`
Description string `xml:"description"`
Link string `xml:"link"`
}
type Highlight struct {
Text string `json:"text"`
IsNoteOnly bool `json:"isNoteOnly"`
Location Location `json:"location"`
Note interface{} `json:"note"`
}
type List struct {
Key string `json:"key"`
Data []string `json:"data"`
Rule string `json:"rule"`
}
type Location struct {
URL string `json:"url"`
Value int `json:"value"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.