package
0.0.0-20240710123643-e228e493b293
Repository: https://github.com/andreassko/go-jwlm.git
Documentation: pkg.go.dev

# Functions

MakeDatabaseCopy creates a deep copy of the given Database, so elements of the copy can be safely updated without affecting the original one.
MakeModelCopy copies the content of the given Model (pointer to a model-implementing struct) to a new Model.
MakeModelSlice converts a slice of pointers of model-implementing structs to []model.
SortByUniqueKey sorts the given pointer to a slice of Model by UniqueKey, removes unnecessary nil-entries (except at position 0), and also updates the IDs accordingly.
UpdateIDs updates a given ID (named by IDName) on the slice of *model.Model according to the given map, for which the key represents the old ID, and value represents the new ID.

# Structs

BlockRange represents the BlockRange table inside the JW Library database.
Bookmark represents the Bookmark table inside the JW Library database.
Database represents the JW Library database as a struct.
InputField represents the InputField table inside the JW Library database.
Location represents the Location table inside the JW Library database.
Note represents the Note table inside the JW Library database.
Related combines entries that are related to a given model.
Tag represents the Tag table inside the JW Library database.
TagMap represents the TagMap table inside the JW Library database.
UserMark represents the UserMark table inside the JW Library database.
UserMarkBlockRange represents a UserMark joined with its BlockRange entries.

# Interfaces

Model represents a general table of the JW Library database and defines methods that are needed so entries are mergeable.