Documentation
¶
Index ¶
- type AddressRecord
- type ChangedRecord
- type ChildRecord
- type CitationRecord
- type CorpRecord
- type DataRecord
- type Decoder
- type EncodingRecord
- type EventRecord
- type FamilyLinkRecord
- type FamilyRecord
- type FileRecord
- type Gedcom
- type HeaderDataRecord
- type HeaderInfoRecord
- type HeaderRecord
- type HeaderSourceRecord
- type IndividualRecord
- type NameRecord
- type NoteRecord
- type ObjectRecord
- type PlaceRecord
- type RepositoryRecord
- type SourceDataRecord
- type SourceRecord
- type SpouseInfoRecord
- type SubmissionRecord
- type SubmitterRecord
- type TimestampRecord
- type Trailer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressRecord ¶
type AddressRecord struct { Full string Line1 string Line2 string City string State string PostalCode string Country string Phone string }
AddressRecord describes and address.
type ChangedRecord ¶
type ChangedRecord struct { Stamp *TimestampRecord Note []*NoteRecord }
ChangedRecord describes a document change.
type ChildRecord ¶
type ChildRecord struct { FatherRelation string MotherRelation string Person *IndividualRecord }
ChildRecord describes a child within a family.
type CitationRecord ¶
type CitationRecord struct { Source *SourceRecord Page string Data DataRecord Quality string Object []*ObjectRecord Note []*NoteRecord }
CitationRecord links another record and a source.
type CorpRecord ¶
type CorpRecord struct { Name string Address *AddressRecord Phone []string }
CorpRecord describes the corporation producing the software that generated the Gedcom.
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
A Decoder reads and decodes GEDCOM objects from an input stream.
func NewDecoder ¶
NewDecoder returns a new decoder that reads from r.
type EncodingRecord ¶
EncodingRecord describes a character encoding.
type EventRecord ¶
type EventRecord struct { Tag string Value string Type string Date string SortDate time.Time Place PlaceRecord Address AddressRecord Age string Agency string Citation []*CitationRecord Object []*ObjectRecord Note []*NoteRecord Cause []*NoteRecord Parents []*FamilyLinkRecord SpouseInfo []*SpouseInfoRecord }
EventRecord describes a life event.
type FamilyLinkRecord ¶
type FamilyLinkRecord struct { Family *FamilyRecord Pedigree string AdoptedBy string Note []*NoteRecord }
FamilyLinkRecord ...
type FamilyRecord ¶
type FamilyRecord struct { Xref string Husband *IndividualRecord Wife *IndividualRecord NumberOfChildren *EventRecord Changed *ChangedRecord Child []*ChildRecord Event []*EventRecord Citation []*CitationRecord Object []*ObjectRecord Note []*NoteRecord }
FamilyRecord describes a family unit.
type FileRecord ¶
type FileRecord struct { Name string Title string Form string Description *NoteRecord }
FileRecord ...
type Gedcom ¶
type Gedcom struct { Header *HeaderRecord Submission *SubmissionRecord Submitter []*SubmitterRecord Family []*FamilyRecord Individual []*IndividualRecord Object []*ObjectRecord Repository []*RepositoryRecord Source []*SourceRecord Note []*NoteRecord Trailer *Trailer }
Gedcom is the top level structure.
type HeaderDataRecord ¶
HeaderDataRecord ...
type HeaderInfoRecord ¶
HeaderInfoRecord contains information about the Gedcom version
type HeaderRecord ¶
type HeaderRecord struct { Date string Destination string File string Copyright string Language string Timestamp *TimestampRecord Encoding *EncodingRecord Source *HeaderSourceRecord Submitter *SubmitterRecord Submission *SubmissionRecord Info *HeaderInfoRecord Note *NoteRecord }
HeaderRecord is the heading of the Gedcom file.
type HeaderSourceRecord ¶
type HeaderSourceRecord struct { Source string Version string Name string Form string Corporation *CorpRecord Data *HeaderDataRecord }
HeaderSourceRecord ...
type IndividualRecord ¶
type IndividualRecord struct { Xref string Sex string Changed *ChangedRecord Photo *ObjectRecord Name []*NameRecord Event []*EventRecord Attribute []*EventRecord Parents []*FamilyLinkRecord Family []*FamilyLinkRecord Citation []*CitationRecord Object []*ObjectRecord Note []*NoteRecord }
IndividualRecord describes a single person.
type NameRecord ¶
type NameRecord struct { Name string Prefix string Suffix string Citation []*CitationRecord Note []*NoteRecord }
NameRecord describes a person's name.
type NoteRecord ¶
type NoteRecord struct { Xref string Note string Citation []*CitationRecord }
NoteRecord describes a text note.
type ObjectRecord ¶
type ObjectRecord struct { Xref string File *FileRecord Note []*NoteRecord }
ObjectRecord describes a source object.
type PlaceRecord ¶
type PlaceRecord struct { Name string Latitude string Longitude string Citation []*CitationRecord Note []*NoteRecord }
PlaceRecord describes a location.
type RepositoryRecord ¶
type RepositoryRecord struct {
Xref string
}
RepositoryRecord is currently not implemented.
type SourceDataRecord ¶
type SourceDataRecord struct { Agency string Event []*EventRecord Note []*NoteRecord }
SourceDataRecord describes events pertaining to this source
type SourceRecord ¶
type SourceRecord struct { Xref string Author string Title string Abbr string Publication string Type string Text string MediaType string Periodical string Volume string Page []string Film []string File []string FileNumber []string Place []string Date []string DateViewed []string URL []string DocLocation []string Repository []string Submitter []string Changed *ChangedRecord EventData *SourceDataRecord Note []*NoteRecord Object []*ObjectRecord }
SourceRecord describes a single source document.
func (*SourceRecord) GetReferenceString ¶
func (s *SourceRecord) GetReferenceString() string
getReferenceString returns a reference to the source.
type SpouseInfoRecord ¶
SpouseInfoRecord describes information about a spouse referenced in a family event.
type SubmissionRecord ¶
type SubmissionRecord struct { Xref string FamilyFile string TempleCode string Ancestors string Descendants string Ordinance string Submitter *SubmitterRecord }
SubmissionRecord ...
type SubmitterRecord ¶
type SubmitterRecord struct { Xref string Name string Language string Phone []string Address *AddressRecord Changed *ChangedRecord }
SubmitterRecord describes a submitter.
type TimestampRecord ¶
TimestampRecord describes a timestamp.