elliotchance / gedcom

👪 A Go library and CLI tools for encoding, decoding, traversing, merging, comparing, querying and publishing GEDCOM files.
MIT License
94 stars 21 forks source link

Add FAMS code in individual nodes when made a spouse in a family. #310

Closed jazzboME closed 4 years ago

jazzboME commented 4 years ago

These changes should add a FAMS record to the individual when they are added as a spouse to a family node. See https://github.com/elliotchance/gedcom/issues/309 I hope I handled the cache values appropriately, originally that was confusing me as to why my delete tests were failing, although GEDCOMString() was showing what I expected.

I'll tackle children (FAMC) codes separately, soon.


This change is Reviewable

jazzboME commented 4 years ago

Actually FAMC was easier than I thought as there isn't a corresponding RemoveChild() -- yet.