gedcom

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Unlicense Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader struct {
	ScopeName           string
	Gedcom              *gedcom.Gedcom
	Attrs               map[string]string
	Citations           map[string]*model.GeneralCitation
	Tags                map[string]string
	SourcesByAPID       map[string]*model.Source
	SourceRecordsByXref map[string]*gedcom.SourceRecord
	MediaRecordsByXref  map[string]*gedcom.MediaRecord
}

func NewLoader

func NewLoader(filename string) (*Loader, error)

func (*Loader) Load

func (l *Loader) Load(t *tree.Tree) error

func (*Loader) Scope

func (l *Loader) Scope() string

type ModelFinder

type ModelFinder interface {
	FindPerson(scope string, id string) *model.Person
	FindSource(scope string, id string) *model.Source
	FindPlaceUnstructured(name string, hints ...place.Hint) *model.Place
	AddAlias(alias string, canonical string)
}

Jump to

Keyboard shortcuts

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