Documentation ¶
Index ¶
- Constants
- func FourFourYearIDFunc(p Person, d Database) error
- func GetFourFourBirthNameID(p Person) (string, error)
- func GetFourFourYearID(p Person) (string, error)
- func GetLastFirstNameID(p Person) (string, error)
- func RenderGenealogytree(p Person, o RenderTreeOptions) ([]byte, error)
- func RenderTemplateFile(filename string, data interface{}) ([]byte, error)
- func SplitPersons(personList PersonList, split Person) (younger PersonList, older PersonList)
- type AbsoluteLevel
- func (l *AbsoluteLevel) Equals(other AbsoluteLevel) bool
- func (l *AbsoluteLevel) GetBoxOptions() LevelBoxOptions
- func (l *AbsoluteLevel) GetColor() LevelColor
- func (l *AbsoluteLevel) GetOptions() LevelOptions
- func (l *AbsoluteLevel) IsChildLevel(probandLevel int) bool
- func (l *AbsoluteLevel) IsParentLevel(probandLevel int) bool
- func (l *AbsoluteLevel) IsProbandLevel(probandLevel int) bool
- func (l *AbsoluteLevel) SetBoxOptions(lb LevelBoxOptions)
- func (l *AbsoluteLevel) SetColor(lc LevelColor)
- func (l *AbsoluteLevel) SetOptions(lb LevelOptions)
- type Database
- type DatePlace
- type FlatPerson
- func (d *FlatPerson) AddAttribute(attr string)
- func (d *FlatPerson) GetAge(now time.Time) int
- func (d *FlatPerson) GetAttributes() []string
- func (d *FlatPerson) GetBaptism() DatePlace
- func (d *FlatPerson) GetBirth() DatePlace
- func (d *FlatPerson) GetBurial() DatePlace
- func (d *FlatPerson) GetChildNumber() int
- func (d *FlatPerson) GetChildren() (PersonList, error)
- func (d *FlatPerson) GetChildrenParents() (PersonList, error)
- func (d *FlatPerson) GetChildrenWith(partner Person) (PersonList, error)
- func (d *FlatPerson) GetComment() string
- func (d *FlatPerson) GetDad() (Person, error)
- func (d *FlatPerson) GetDeath() DatePlace
- func (d *FlatPerson) GetDeathAge() int
- func (d *FlatPerson) GetFloruit() string
- func (d *FlatPerson) GetGender() Gender
- func (d *FlatPerson) GetID() string
- func (d *FlatPerson) GetImageFilename() string
- func (d *FlatPerson) GetJobs() string
- func (d *FlatPerson) GetMom() (Person, error)
- func (d *FlatPerson) GetName() Name
- func (d *FlatPerson) GetPartners() (PersonList, error)
- func (d *FlatPerson) GetRelationships() []Relationship
- func (d *FlatPerson) GetUUID() string
- func (d *FlatPerson) IsDummy() bool
- func (d *FlatPerson) MatchesIDUUID(idUUIDSearches ...string) bool
- func (d *FlatPerson) MatchesSearch(search string) bool
- func (d *FlatPerson) SetComment(comment string)
- func (d *FlatPerson) SetID(id string)
- func (d *FlatPerson) SetImageFilename(filename string)
- func (d *FlatPerson) SetJobs(jobs string)
- func (d FlatPerson) String() string
- type FlatRelationship
- type Gender
- type GenderOrder
- type GraphType
- type LastnamePolicy
- type Level
- type LevelBoxOptions
- type LevelColor
- type LevelConfig
- type LevelOptions
- type Marriage
- type MemoryDatabase
- func (y MemoryDatabase) Anonymize()
- func (y MemoryDatabase) Get(search string) (Person, error)
- func (y MemoryDatabase) GetByID(ID string) (Person, error)
- func (y *MemoryDatabase) MakeIDs(f func(p Person, d Database) error) error
- func (y *MemoryDatabase) ParseYamlFile(filename string) error
- func (y *MemoryDatabase) WriteYamlFile(filename string) error
- type Name
- type NodeType
- type Person
- type PersonList
- func (p *PersonList) AddList(personList *PersonList) *PersonList
- func (p *PersonList) AddPerson(person Person) *PersonList
- func (p *PersonList) Count() int
- func (p *PersonList) GetChildren() (PersonList, error)
- func (p *PersonList) GetPartners() (PersonList, error)
- func (p *PersonList) GetPersons() []Person
- func (p *PersonList) Invert() *PersonList
- func (p *PersonList) RemoveDuplicates() *PersonList
- func (p *PersonList) SortPersons(sortFunc func(i, j int) bool) *PersonList
- type Relationship
- type RelativeLevel
- func (l *RelativeLevel) GetBoxOptions() LevelBoxOptions
- func (l *RelativeLevel) GetColor() LevelColor
- func (l *RelativeLevel) GetOptions() LevelOptions
- func (l *RelativeLevel) SetBoxOptions(lb LevelBoxOptions)
- func (l *RelativeLevel) SetColor(lc LevelColor)
- func (l *RelativeLevel) SetOptions(lb LevelOptions)
- type RenderPersonOptions
- type RenderTreeOptions
- type YamlDatabase
Constants ¶
const GenerationsNone = -1
Variables ¶
This section is empty.
Functions ¶
func FourFourYearIDFunc ¶
func GetFourFourBirthNameID ¶
func GetFourFourYearID ¶
func GetLastFirstNameID ¶
func RenderGenealogytree ¶
func RenderGenealogytree(p Person, o RenderTreeOptions) ([]byte, error)
func RenderTemplateFile ¶
func SplitPersons ¶
func SplitPersons(personList PersonList, split Person) (younger PersonList, older PersonList)
Types ¶
type AbsoluteLevel ¶
type AbsoluteLevel struct { Index int `yaml:"index,omitempty"` Color LevelColor `yaml:"color,omitempty"` BoxOptions LevelBoxOptions `yaml:"box-options,omitempty"` Options LevelOptions `yaml:"options,omitempty"` }
func (*AbsoluteLevel) Equals ¶
func (l *AbsoluteLevel) Equals(other AbsoluteLevel) bool
func (*AbsoluteLevel) GetBoxOptions ¶
func (l *AbsoluteLevel) GetBoxOptions() LevelBoxOptions
func (*AbsoluteLevel) GetColor ¶
func (l *AbsoluteLevel) GetColor() LevelColor
func (*AbsoluteLevel) GetOptions ¶
func (l *AbsoluteLevel) GetOptions() LevelOptions
func (*AbsoluteLevel) IsChildLevel ¶
func (l *AbsoluteLevel) IsChildLevel(probandLevel int) bool
func (*AbsoluteLevel) IsParentLevel ¶
func (l *AbsoluteLevel) IsParentLevel(probandLevel int) bool
func (*AbsoluteLevel) IsProbandLevel ¶
func (l *AbsoluteLevel) IsProbandLevel(probandLevel int) bool
func (*AbsoluteLevel) SetBoxOptions ¶
func (l *AbsoluteLevel) SetBoxOptions(lb LevelBoxOptions)
func (*AbsoluteLevel) SetColor ¶
func (l *AbsoluteLevel) SetColor(lc LevelColor)
func (*AbsoluteLevel) SetOptions ¶
func (l *AbsoluteLevel) SetOptions(lb LevelOptions)
type DatePlace ¶
type DatePlace struct { // need to support things like "before 1932" here Date string `yaml:"date,omitempty"` Place string `yaml:"place,omitempty"` }
func (DatePlace) GetAgeBegin ¶
type FlatPerson ¶
type FlatPerson struct { Dummy bool `yaml:"-"` ID string `yaml:"id,omitempty"` UUID string `yaml:"uuid,omitempty"` ChildNumber int `yaml:"child_number,omitempty"` Name Name `yaml:"name,omitempty"` Gender string `yaml:"gender,omitempty"` Birth DatePlace `yaml:"birth,omitempty"` Baptism DatePlace `yaml:"baptism,omitempty"` Death DatePlace `yaml:"death,omitempty"` Burial DatePlace `yaml:"burial,omitempty"` Mom string `yaml:"mom,omitempty"` Dad string `yaml:"dad,omitempty"` Partners []FlatRelationship `yaml:"partners,omitempty"` Attributes []string `yaml:"attributes,omitempty"` ImageFilename string `yaml:"image,omitempty"` Floruit string `yaml:"floruit,omitempty"` Jobs string `yaml:"jobs,omitempty"` Comment string `yaml:"comment,omitempty"` Database *MemoryDatabase `yaml:"-"` }
func NewDummyFlatPerson ¶
func NewDummyFlatPerson() *FlatPerson
func (*FlatPerson) AddAttribute ¶
func (d *FlatPerson) AddAttribute(attr string)
func (*FlatPerson) GetAttributes ¶
func (d *FlatPerson) GetAttributes() []string
func (*FlatPerson) GetBaptism ¶
func (d *FlatPerson) GetBaptism() DatePlace
func (*FlatPerson) GetBirth ¶
func (d *FlatPerson) GetBirth() DatePlace
func (*FlatPerson) GetBurial ¶
func (d *FlatPerson) GetBurial() DatePlace
func (*FlatPerson) GetChildNumber ¶
func (d *FlatPerson) GetChildNumber() int
func (*FlatPerson) GetChildren ¶
func (d *FlatPerson) GetChildren() (PersonList, error)
func (*FlatPerson) GetChildrenParents ¶
func (d *FlatPerson) GetChildrenParents() (PersonList, error)
func (*FlatPerson) GetChildrenWith ¶
func (d *FlatPerson) GetChildrenWith(partner Person) (PersonList, error)
func (*FlatPerson) GetComment ¶
func (d *FlatPerson) GetComment() string
func (*FlatPerson) GetDad ¶
func (d *FlatPerson) GetDad() (Person, error)
func (*FlatPerson) GetDeath ¶
func (d *FlatPerson) GetDeath() DatePlace
func (*FlatPerson) GetDeathAge ¶
func (d *FlatPerson) GetDeathAge() int
func (*FlatPerson) GetFloruit ¶
func (d *FlatPerson) GetFloruit() string
func (*FlatPerson) GetGender ¶
func (d *FlatPerson) GetGender() Gender
func (*FlatPerson) GetID ¶
func (d *FlatPerson) GetID() string
func (*FlatPerson) GetImageFilename ¶
func (d *FlatPerson) GetImageFilename() string
func (*FlatPerson) GetJobs ¶
func (d *FlatPerson) GetJobs() string
func (*FlatPerson) GetMom ¶
func (d *FlatPerson) GetMom() (Person, error)
func (*FlatPerson) GetName ¶
func (d *FlatPerson) GetName() Name
func (*FlatPerson) GetPartners ¶
func (d *FlatPerson) GetPartners() (PersonList, error)
func (*FlatPerson) GetRelationships ¶
func (d *FlatPerson) GetRelationships() []Relationship
func (*FlatPerson) GetUUID ¶
func (d *FlatPerson) GetUUID() string
func (*FlatPerson) IsDummy ¶
func (d *FlatPerson) IsDummy() bool
func (*FlatPerson) MatchesIDUUID ¶
func (d *FlatPerson) MatchesIDUUID(idUUIDSearches ...string) bool
func (*FlatPerson) MatchesSearch ¶
func (d *FlatPerson) MatchesSearch(search string) bool
func (*FlatPerson) SetComment ¶
func (d *FlatPerson) SetComment(comment string)
func (*FlatPerson) SetID ¶
func (d *FlatPerson) SetID(id string)
func (*FlatPerson) SetImageFilename ¶
func (d *FlatPerson) SetImageFilename(filename string)
func (*FlatPerson) SetJobs ¶
func (d *FlatPerson) SetJobs(jobs string)
func (FlatPerson) String ¶
func (d FlatPerson) String() string
type FlatRelationship ¶
type FlatRelationship struct { PartnerID string `yaml:"partner_id,omitempty"` Engagement DatePlace `yaml:"engagement,omitempty"` Marriage DatePlace `yaml:"marriage,omitempty"` Divorce DatePlace `yaml:"divorce,omitempty"` Person FlatPerson `yaml:"-"` }
func (FlatRelationship) GetDivorce ¶
func (f FlatRelationship) GetDivorce() *DatePlace
func (FlatRelationship) GetEngagement ¶
func (f FlatRelationship) GetEngagement() *DatePlace
func (FlatRelationship) GetMarriage ¶
func (f FlatRelationship) GetMarriage() *DatePlace
func (FlatRelationship) GetPartner ¶
func (f FlatRelationship) GetPartner() (Person, error)
type Gender ¶
type Gender int8
Gender x ENUM( unknown male female )
func ParseGender ¶
ParseGender attempts to convert a string to a Gender
type GenderOrder ¶
type GenderOrder int
ENUM(
MaleFirst = 1 FemaleFirst
const ( // GenderOrderMaleFirst is a GenderOrder of type MaleFirst GenderOrderMaleFirst GenderOrder = iota + 1 // GenderOrderFemaleFirst is a GenderOrder of type FemaleFirst GenderOrderFemaleFirst )
func ParseGenderOrder ¶
func ParseGenderOrder(name string) (GenderOrder, error)
ParseGenderOrder attempts to convert a string to a GenderOrder
func (GenderOrder) String ¶
func (x GenderOrder) String() string
String implements the Stringer interface.
type GraphType ¶
type GraphType int
ENUM(
parent = 1 child sandclock
func ParseGraphType ¶
ParseGraphType attempts to convert a string to a GraphType
type LastnamePolicy ¶
type LastnamePolicy int
ENUM(
Birth = 1 Current CurrentAndBirth
const ( // LastnamePolicyBirth is a LastnamePolicy of type Birth LastnamePolicyBirth LastnamePolicy = iota + 1 // LastnamePolicyCurrent is a LastnamePolicy of type Current LastnamePolicyCurrent // LastnamePolicyCurrentAndBirth is a LastnamePolicy of type CurrentAndBirth LastnamePolicyCurrentAndBirth )
func ParseLastnamePolicy ¶
func ParseLastnamePolicy(name string) (LastnamePolicy, error)
ParseLastnamePolicy attempts to convert a string to a LastnamePolicy
func (LastnamePolicy) String ¶
func (x LastnamePolicy) String() string
String implements the Stringer interface.
type Level ¶
type Level interface { GetColor() LevelColor GetBoxOptions() LevelBoxOptions GetOptions() LevelOptions SetColor(c LevelColor) SetBoxOptions(b LevelBoxOptions) SetOptions(b LevelOptions) }
func MergeWithBase ¶
type LevelBoxOptions ¶
type LevelBoxOptions struct { Main string `yaml:"main,omitempty"` Leaf string `yaml:"leaf,omitempty"` }
func (*LevelBoxOptions) Equals ¶
func (lo *LevelBoxOptions) Equals(other LevelBoxOptions) bool
func (*LevelBoxOptions) IsEmpty ¶
func (lo *LevelBoxOptions) IsEmpty() bool
func (*LevelBoxOptions) Merge ¶
func (lo *LevelBoxOptions) Merge(inheritedOpts LevelBoxOptions) *LevelBoxOptions
Merge does append!
type LevelColor ¶
func (*LevelColor) Equals ¶
func (lc *LevelColor) Equals(other LevelColor) bool
func (*LevelColor) IsEmpty ¶
func (lc *LevelColor) IsEmpty() bool
func (*LevelColor) MergeWithBase ¶
func (lc *LevelColor) MergeWithBase(lc2 *LevelColor) *LevelColor
merge with default
func (*LevelColor) OverwriteWith ¶
func (lc *LevelColor) OverwriteWith(lc2 *LevelColor) *LevelColor
overwrite
type LevelConfig ¶
type LevelConfig struct { Absolute []AbsoluteLevel `yaml:"absolute,omitempty"` Relative []RelativeLevel `yaml:"relative,omitempty"` // globals Color LevelColor `yaml:"color,omitempty"` BoxOptions LevelBoxOptions `yaml:"box-options,omitempty"` Options LevelOptions `yaml:"options,omitempty"` Themes []string `yaml:"themes,omitempty"` // generated Combined []AbsoluteLevel `yaml:"-"` }
func (*LevelConfig) AddDefaultLevels ¶
func (l *LevelConfig) AddDefaultLevels(from, to int) *LevelConfig
func (*LevelConfig) Combine ¶
func (l *LevelConfig) Combine(probandLevel int)
func (*LevelConfig) Inherit ¶
func (l *LevelConfig) Inherit(probandLevel int, baseConfig LevelConfig) *LevelConfig
func (*LevelConfig) SetGlobals ¶
func (l *LevelConfig) SetGlobals() *LevelConfig
type LevelOptions ¶
type LevelOptions string
func (*LevelOptions) Merge ¶
func (lo *LevelOptions) Merge(inheritedOpts LevelOptions) *LevelOptions
type MemoryDatabase ¶
type MemoryDatabase struct { Persons []*FlatPerson Sources []Source // TODO Familybook sollte Source heißen und Source eher Reference }
func NewMemoryDatabase ¶
func NewMemoryDatabase() *MemoryDatabase
func (MemoryDatabase) Anonymize ¶
func (y MemoryDatabase) Anonymize()
func (*MemoryDatabase) MakeIDs ¶
func (y *MemoryDatabase) MakeIDs(f func(p Person, d Database) error) error
func (*MemoryDatabase) ParseYamlFile ¶
func (y *MemoryDatabase) ParseYamlFile(filename string) error
func (*MemoryDatabase) WriteYamlFile ¶
func (y *MemoryDatabase) WriteYamlFile(filename string) error
type Name ¶
type Name struct { Title string `yaml:"title,omitempty"` First []string `yaml:"first,omitempty"` // If the used first name is different from the first element in the .First slice, it can be set using .Used Used string `yaml:"used,omitempty"` Last string `yaml:"last,omitempty"` Birth string `yaml:"birth,omitempty"` Alias string `yaml:"alias,omitempty"` Nick string `yaml:"nick,omitempty"` }
func (Name) FormatFull ¶
FormatFull displays the full name, firstname before lastname
func (Name) FormatFullInverse ¶
FormatFullInverse displays the full name, lastname before firstname
func (Name) FormatFullNoMiddle ¶
FormatFullNoMiddle displays the full name, firstname before lastname, withotu middlename(s)
func (Name) GetUsedFirst ¶
GetUsedFirst returns the used name if it is given, the first of the first names otherwise
type NodeType ¶
type NodeType int
ENUM(
g = 1 p c
func ParseNodeType ¶
ParseNodeType attempts to convert a string to a NodeType
type Person ¶
type Person interface { SetID(id string) GetID() string GetUUID() string GetGender() Gender MatchesIDUUID(idUUIDSearches ...string) bool MatchesSearch(search string) bool GetChildNumber() int GetName() Name GetBirth() DatePlace GetBaptism() DatePlace GetDeath() DatePlace // GetDeathAge returns the age in years at the given point of time. -1 iff the age can't be determined. GetAge(now time.Time) int // GetDeathAge returns the age in years when the person died. -1 iff the age can't be determined. GetDeathAge() int GetBurial() DatePlace // GetChildren returns all children of this person GetChildren() (PersonList, error) GetMom() (Person, error) GetDad() (Person, error) GetRelationships() []Relationship // GetPartners returns the list partners that are known for this person // A partner is a person that // - has been married with this person for any given moment in the past // OR // - had at least one child with this partner for any given moment in the past GetPartners() (PersonList, error) // GetChildrenWith returns the list of children of this person with a given partner GetChildrenWith(partner Person) (PersonList, error) // GetChildrenParents returns the list partners that person has children with (possibly including `nil` iff there is children where no other parent is known) GetChildrenParents() (PersonList, error) GetAttributes() []string AddAttribute(attr string) GetImageFilename() string SetImageFilename(filename string) GetFloruit() string GetJobs() string SetJobs(jobs string) GetComment() string SetComment(comment string) IsDummy() bool }
Person interface
type PersonList ¶
type PersonList struct {
// contains filtered or unexported fields
}
PersonList is a model for collection of persons
func NewPersonList ¶
func NewPersonList(database Database) PersonList
func NewPersonListByIDs ¶
func NewPersonListByIDs(database Database, IDs []string) (PersonList, error)
func (*PersonList) AddList ¶
func (p *PersonList) AddList(personList *PersonList) *PersonList
func (*PersonList) AddPerson ¶
func (p *PersonList) AddPerson(person Person) *PersonList
func (*PersonList) Count ¶
func (p *PersonList) Count() int
func (*PersonList) GetChildren ¶
func (p *PersonList) GetChildren() (PersonList, error)
func (*PersonList) GetPartners ¶
func (p *PersonList) GetPartners() (PersonList, error)
func (*PersonList) GetPersons ¶
func (p *PersonList) GetPersons() []Person
func (*PersonList) Invert ¶
func (p *PersonList) Invert() *PersonList
func (*PersonList) RemoveDuplicates ¶
func (p *PersonList) RemoveDuplicates() *PersonList
func (*PersonList) SortPersons ¶
func (p *PersonList) SortPersons(sortFunc func(i, j int) bool) *PersonList
type Relationship ¶
type RelativeLevel ¶
type RelativeLevel struct { Index int Color LevelColor BoxOptions LevelBoxOptions `yaml:"box-options,omitempty"` Options LevelOptions `yaml:"options,omitempty"` }
func (*RelativeLevel) GetBoxOptions ¶
func (l *RelativeLevel) GetBoxOptions() LevelBoxOptions
func (*RelativeLevel) GetColor ¶
func (l *RelativeLevel) GetColor() LevelColor
func (*RelativeLevel) GetOptions ¶
func (l *RelativeLevel) GetOptions() LevelOptions
func (*RelativeLevel) SetBoxOptions ¶
func (l *RelativeLevel) SetBoxOptions(lb LevelBoxOptions)
func (*RelativeLevel) SetColor ¶
func (l *RelativeLevel) SetColor(lc LevelColor)
func (*RelativeLevel) SetOptions ¶
func (l *RelativeLevel) SetOptions(lb LevelOptions)
type RenderPersonOptions ¶
type RenderPersonOptions struct { NodeType NodeType TemplateFilename string Date time.Time // Display filter HideRootNodeHighlighting bool `yaml:"hide-root-node-highlighting,omitempty"` LastnamePolicy LastnamePolicy `yaml:"lastname-policy,omitempty"` // Output filter HideID bool `yaml:"hide-id,omitempty"` HideAttributes []string `yaml:"hide-attributes,omitempty"` HideGender bool `yaml:"hide-gender,omitempty"` HideName bool `yaml:"hide-name,omitempty"` HideBirth bool `yaml:"hide-birth,omitempty"` ShowAge bool `yaml:"show-age,omitempty"` HideBaptism bool `yaml:"hide-baptism,omitempty"` HideDeath bool `yaml:"hide-death,omitempty"` HideDeathAge bool `yaml:"hide-death-age,omitempty"` HideBurial bool `yaml:"hide-burial,omitempty"` HideImage bool `yaml:"hide-image,omitempty"` HideJobs bool `yaml:"hide-jobs,omitempty"` HideFloruit bool `yaml:"hide-floruit,omitempty"` HideComment bool `yaml:"hide-comment,omitempty"` HideEngagement bool `yaml:"hide-engagement,omitempty"` HideMarriage bool `yaml:"hide-marriage,omitempty"` HideMarriageAge bool `yaml:"hide-marriage-age,omitempty"` HideDivorce bool `yaml:"hide-divorce,omitempty"` // special filters HidePlaces bool `yaml:"hide-places,omitempty"` HideMiddleNames bool `yaml:"hide-middle-names,omitempty"` }
func (*RenderPersonOptions) HideAllData ¶
func (o *RenderPersonOptions) HideAllData()
func (*RenderPersonOptions) HideImageByLevel ¶
func (o *RenderPersonOptions) HideImageByLevel(treeOptions RenderTreeOptions, currentLevel int) *RenderPersonOptions
func (*RenderPersonOptions) SetDefaults ¶
func (o *RenderPersonOptions) SetDefaults() *RenderPersonOptions
type RenderTreeOptions ¶
type RenderTreeOptions struct { RenderPersonOptions *RenderPersonOptions `yaml:"render-person-options,omitempty"` TemplateFilenameTree string `yaml:"template-filename-tree,omitempty"` TemplateFilenamePerson string `yaml:"template-filename-person,omitempty"` TemplateFilenameParentTree string `yaml:"template-filename-parent-tree,omitempty"` TemplateFilenameParentTreeHeadless string `yaml:"template-filename-parent-tree-headless,omitempty"` TemplateFilenameChildTree string `yaml:"template-filename-child-tree,omitempty"` TemplateFilenameUnionTree string `yaml:"template-filename-union-tree,omitempty"` FailForIDLookup bool GraphType GraphType GenderOrder GenderOrder // levels Levels []AbsoluteLevel `yaml:"-"` // Limits IgnoreIDs []string `yaml:"ignore,omitempty"` MaxParentGenerations int `yaml:"max-parent-generations,omitempty"` MaxParentSiblingsGenerations int `yaml:"max-parent-siblings-generations,omitempty"` MaxChildGenerations int `yaml:"max-child-generations,omitempty"` MaxChildPartnersGenerations int `yaml:"max-child-partners-generations,omitempty"` MinImageLevel *int `yaml:"min-image-level,omitempty"` MaxImageLevel *int `yaml:"max-image-level,omitempty"` HideFamilyIDs bool `yaml:"-"` }
func (*RenderTreeOptions) SetDefaults ¶
func (o *RenderTreeOptions) SetDefaults() *RenderTreeOptions
type YamlDatabase ¶
type YamlDatabase struct { Persons []*FlatPerson `yaml:",omitempty"` Sources []Source `yaml:",omitempty"` DefaultSources []Reference `yaml:"default-sources,omitempty"` }